• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring Boot - How to Query a H2 database in Cucumber Tests

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am writing Cucumber tests for a gradle Spring Boot app. At the moment, I am using REST Assured to validate the response body I am getting back from my micro services.
The next step is to validate the actual database column values that have been created / updated during the tests.

I am writing to a H2 (in-memory) database in my tests currently, but don't know how to check the table values.

Someone mentioned using DbUnit, but I'm not sure if that's correct. Can someone please point me in the direction I should be going please?
 
reply
    Bookmark Topic Watch Topic
  • New Topic