From 528d776d2bb77a31212b05a1b4ad6f2e6ed53b94 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 28 Apr 2017 14:20:56 -0700 Subject: [PATCH] Polish --- .../boot/context/properties/bind/BinderTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)); }