Skip to content

Instantly share code, notes, and snippets.

@rieckpil
Created March 19, 2022 09:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rieckpil/a85539b132e8ecd23c642f2867364f95 to your computer and use it in GitHub Desktop.
Sample Spring Boot Testcontainers Integration Test
@Testcontainers
class SpringBootIT {
@Container
static PostgreSQLContainer<?> postgreSQLContainer =
new PostgreSQLContainer<>(DockerImageName.parse("postgres:13"))
.withPassword("inmemory")
.withUsername("inmemory");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment