Skip to content

Commit 6ee519e

Browse files
committed
Disable test when Docker is not running
1 parent 92fe4c5 commit 6ee519e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

module/spring-boot-data-jdbc/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dependencies {
3636
dockerTestImplementation(project(":test-support:spring-boot-docker-test-support"))
3737
dockerTestImplementation(testFixtures(project(":core:spring-boot-autoconfigure")))
3838
dockerTestImplementation("ch.qos.logback:logback-classic")
39+
dockerTestImplementation("org.testcontainers:junit-jupiter")
3940
dockerTestImplementation("org.testcontainers:mariadb")
4041
dockerTestImplementation("org.testcontainers:mysql")
4142

module/spring-boot-data-jdbc/src/dockerTest/java/org/springframework/boot/data/jdbc/autoconfigure/DataJdbcRepositoriesAutoConfigurationDialectResolutionTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.testcontainers.containers.JdbcDatabaseContainer;
2121
import org.testcontainers.containers.MariaDBContainer;
2222
import org.testcontainers.containers.MySQLContainer;
23+
import org.testcontainers.junit.jupiter.Testcontainers;
2324

2425
import org.springframework.boot.autoconfigure.AutoConfigurations;
2526
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
@@ -42,6 +43,7 @@
4243
*
4344
* @author Andy Wilkinson
4445
*/
46+
@Testcontainers(disabledWithoutDocker = true)
4547
class DataJdbcRepositoriesAutoConfigurationDialectResolutionTests {
4648

4749
@Test

0 commit comments

Comments
 (0)