Fix spring-boot-launch-script-tests dependency

Remove the reference to the spring-boot:test jar since it's not
published.

See gh-5184
pull/5052/merge
Phillip Webb 9 years ago
parent 602a09332d
commit 2baad56108

@ -39,12 +39,6 @@
<version>2.1.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

@ -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<String> coloredString(AnsiColor color, String string) {
String colorString = ESC + "[0;" + color + "m" + string + ESC + "[0m";
return Matched.by(containsString(colorString));
return new Condition<String>() {
@Override
public boolean matches(String value) {
return containsString(colorString).matches(value);
}
};
}
private String extractPid(String output) {

Loading…
Cancel
Save