Skip to content

Commit 88e42e0

Browse files
committed
chore: testcontainer 버전 업
1 parent 61fad78 commit 88e42e0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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'

src/test/java/com/example/solidconnection/database/FlywayMigrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.springframework.context.ConfigurableApplicationContext;
99
import org.springframework.test.context.ContextConfiguration;
1010
import 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})
@@ -19,7 +19,7 @@
1919
})
2020
class 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");

src/test/java/com/example/solidconnection/support/MySQLTestContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import org.springframework.boot.test.util.TestPropertyValues;
44
import org.springframework.context.ApplicationContextInitializer;
55
import org.springframework.context.ConfigurableApplicationContext;
6-
import org.testcontainers.containers.MySQLContainer;
6+
import org.testcontainers.mysql.MySQLContainer;
77

88
public 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();

0 commit comments

Comments
 (0)