From 17d0dc5a86e57ba27cfa14f2fef6c15fe092e245 Mon Sep 17 00:00:00 2001 From: izeye Date: Sat, 12 Sep 2015 00:34:29 +0900 Subject: [PATCH] Polish tests Closes gh-3946 --- .../boot/bind/PropertiesConfigurationFactoryTests.java | 1 - .../ConfigurationPropertiesBindingPostProcessorTests.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/bind/PropertiesConfigurationFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/bind/PropertiesConfigurationFactoryTests.java index 33f23dabf86..1c182a9ebe9 100644 --- a/spring-boot/src/test/java/org/springframework/boot/bind/PropertiesConfigurationFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/bind/PropertiesConfigurationFactoryTests.java @@ -97,7 +97,6 @@ public class PropertiesConfigurationFactoryTests { this.factory.setPropertySources(propertySources); this.factory.setIgnoreUnknownFields(false); this.factory.afterPropertiesSet(); - this.factory.getObject(); Foo foo = this.factory.getObject(); assertEquals("bar", foo.name); } diff --git a/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java b/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java index e473de72ab6..647a2a760dc 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java @@ -88,7 +88,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests { } @Test - public void unknonwFieldFailureMessageContainsDetailsOfPropertyOrigin() { + public void unknownFieldFailureMessageContainsDetailsOfPropertyOrigin() { this.context = new AnnotationConfigApplicationContext(); EnvironmentTestUtils.addEnvironment(this.context, "com.example.baz:spam"); this.context.register(TestConfiguration.class);