From 85d2f2950a228bd3412a5a0c290d7b5031a785ad Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 14 Apr 2016 18:27:33 -0700 Subject: [PATCH] Use RegEx for test to make Windows happy --- .../java/org/springframework/boot/SpringApplicationTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java b/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java index c0b7fd3a46..a885077bf4 100644 --- a/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java @@ -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