Created
March 19, 2022 09:59
-
-
Save rieckpil/a85539b132e8ecd23c642f2867364f95 to your computer and use it in GitHub Desktop.
Sample Spring Boot Testcontainers Integration Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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