diff --git a/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java b/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java index 2adae96fa2..7935c8f84d 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java @@ -139,14 +139,15 @@ public class BinderTests { } @Test - public void bindToValueWithMissingPlaceholdersShouldThrowException() throws Exception { + public void bindToValueWithMissingPlaceholdersShouldThrowException() + throws Exception { StandardEnvironment environment = new StandardEnvironment(); this.sources.add(new MockConfigurationPropertySource("foo", "${bar}")); this.binder = new Binder(this.sources, new PropertySourcesPlaceholdersResolver(environment)); this.thrown.expect(BindException.class); - this.thrown.expectCause(ThrowableMessageMatcher.hasMessage( - containsString("Could not resolve placeholder 'bar' in value \"${bar}\""))); + this.thrown.expectCause(ThrowableMessageMatcher.hasMessage(containsString( + "Could not resolve placeholder 'bar' in value \"${bar}\""))); this.binder.bind("foo", Bindable.of(Integer.class)); }