From b60612dabb2d06f8bd56e7c1d8c65db363f75700 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 19 Jan 2022 17:23:30 +0000 Subject: [PATCH] Disable LoaderIntegrationTests when Docker's unavailable Closes gh-29385 --- .../org/springframework/boot/loader/LoaderIntegrationTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java b/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java index 27599f773e..a526dda4fc 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java +++ b/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java @@ -33,6 +33,7 @@ import org.testcontainers.utility.DockerImageName; import org.testcontainers.utility.MountableFile; import org.springframework.boot.system.JavaVersion; +import org.springframework.boot.testsupport.testcontainers.DisabledIfDockerUnavailable; import org.springframework.util.Assert; import static org.assertj.core.api.Assertions.assertThat; @@ -42,6 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat; * * @author Phillip Webb */ +@DisabledIfDockerUnavailable class LoaderIntegrationTests { private final ToStringConsumer output = new ToStringConsumer();