Use RegEx for test to make Windows happy
This commit is contained in:
parent
21bc166c95
commit
85d2f2950a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue