diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java index 13cba880ada..17dd6fad976 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/SampleIntegrationTests.java @@ -29,6 +29,7 @@ import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.springframework.boot.OutputCapture; +import org.springframework.boot.cli.command.CleanCommand; import org.springframework.boot.cli.command.RunCommand; import static org.junit.Assert.assertEquals; @@ -66,8 +67,9 @@ public class SampleIntegrationTests { } @Before - public void setup() { + public void setup() throws Exception { System.setProperty("disableSpringSnapshotRepos", "true"); + new CleanCommand().run("org.springframework"); } @After