Fix SpringApplicationTests.customBannerWithProperties on Windows

Closes gh-2964
pull/2997/head
Andy Wilkinson 10 years ago
parent f1266130fa
commit c2476e039f

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

Loading…
Cancel
Save