From 2baad56108f6abec75225d7e7268d34759d5fb93 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sat, 20 Feb 2016 00:21:14 -0800 Subject: [PATCH] Fix spring-boot-launch-script-tests dependency Remove the reference to the spring-boot:test jar since it's not published. See gh-5184 --- .../spring-boot-launch-script-tests/pom.xml | 6 ------ .../boot/launchscript/SysVinitLaunchScriptIT.java | 10 ++++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spring-boot-integration-tests/spring-boot-launch-script-tests/pom.xml b/spring-boot-integration-tests/spring-boot-launch-script-tests/pom.xml index 77b6d76698d..e3fcc0e99eb 100644 --- a/spring-boot-integration-tests/spring-boot-launch-script-tests/pom.xml +++ b/spring-boot-integration-tests/spring-boot-launch-script-tests/pom.xml @@ -39,12 +39,6 @@ 2.1.4 test - - org.springframework.boot - spring-boot - test-jar - test - org.springframework.boot spring-boot-starter-test diff --git a/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java b/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java index 3960d575b51..eddf8f63b7b 100644 --- a/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java +++ b/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java @@ -48,7 +48,6 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; import org.springframework.boot.ansi.AnsiColor; -import org.springframework.boot.testutil.Matched; import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.containsString; @@ -285,7 +284,14 @@ public class SysVinitLaunchScriptIT { private Condition coloredString(AnsiColor color, String string) { String colorString = ESC + "[0;" + color + "m" + string + ESC + "[0m"; - return Matched.by(containsString(colorString)); + return new Condition() { + + @Override + public boolean matches(String value) { + return containsString(colorString).matches(value); + } + + }; } private String extractPid(String output) {