File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/test/java/com/example/solidconnection Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ dependencies {
5757
5858 // Test
5959 testImplementation ' org.springframework.boot:spring-boot-starter-test'
60- testImplementation ' org.testcontainers:testcontainers'
61- testImplementation ' org.testcontainers:junit-jupiter'
62- testImplementation ' org.testcontainers:mysql'
60+ testImplementation ' org.testcontainers:testcontainers:2.0.2 '
61+ testImplementation ' org.testcontainers:testcontainers- junit-jupiter:2.0.2 '
62+ testImplementation ' org.testcontainers:testcontainers- mysql:2.0.2 '
6363 testImplementation ' org.projectlombok:lombok'
6464 testAnnotationProcessor ' org.projectlombok:lombok'
6565 testImplementation ' org.awaitility:awaitility:4.2.0'
Original file line number Diff line number Diff line change 88import org .springframework .context .ConfigurableApplicationContext ;
99import org .springframework .test .context .ContextConfiguration ;
1010import org .springframework .test .context .TestPropertySource ;
11- import org .testcontainers .containers .MySQLContainer ;
11+ import org .testcontainers .mysql .MySQLContainer ;
1212
1313@ SpringBootTest
1414@ ContextConfiguration (initializers = {RedisTestContainer .class , FlywayMigrationTest .FlywayMySQLInitializer .class })
1919})
2020class FlywayMigrationTest {
2121
22- private static final MySQLContainer <?> CONTAINER = new MySQLContainer <> ("mysql:8.0" )
22+ private static final MySQLContainer CONTAINER = new MySQLContainer ("mysql:8.0" )
2323 .withDatabaseName ("flyway_test" )
2424 .withUsername ("flyway_user" )
2525 .withPassword ("flyway_password" );
Original file line number Diff line number Diff line change 33import org .springframework .boot .test .util .TestPropertyValues ;
44import org .springframework .context .ApplicationContextInitializer ;
55import org .springframework .context .ConfigurableApplicationContext ;
6- import org .testcontainers .containers .MySQLContainer ;
6+ import org .testcontainers .mysql .MySQLContainer ;
77
88public class MySQLTestContainer implements ApplicationContextInitializer <ConfigurableApplicationContext > {
99
10- private static final MySQLContainer <?> CONTAINER = new MySQLContainer <> ("mysql:8.0" );
10+ private static final MySQLContainer CONTAINER = new MySQLContainer ("mysql:8.0" );
1111
1212 static {
1313 CONTAINER .start ();
You can’t perform that action at this time.
0 commit comments