Skip to content

tyler2cr/spring_testcontainers_db2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Data with Testcontainers and db2

Run a spring boot database test against a database running in a docker container that's managed by the test lifecycle.

Reason to use instead of an embedded database

Spring Boot supports testing with an embedded database out-of-the-box. It's fast because it's in-memory, and the default h2 vendor supports most sql use cases. However, for use cases that an embedded h2 database doesn't support, running tests against a db2 database vendor will provide the advantage of testing specific features before executing an end-to-end test.

Tech stack

  • db2
  • testcontainers
  • spring boot data jpa

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages