Use RegEx for test to make Windows happy

This commit is contained in:
Phillip Webb 2016-04-14 18:27:33 -07:00
parent 21bc166c95
commit 85d2f2950a
1 changed files with 1 additions and 2 deletions

View File

@ -194,8 +194,7 @@ public class SpringApplicationTests {
this.context = application.run(
"--banner.location=classpath:test-banner-with-placeholder.txt",
"--test.property=123456");
assertThat(this.output.toString())
.startsWith(String.format("Running a Test!%n%n123456"));
assertThat(this.output.toString()).containsPattern("Running a Test!\\s+123456");
}
@Test