Browse Source

Polish tests

Closes gh-3946
pull/3956/head
izeye 11 years ago committed by Stephane Nicoll
parent
commit
17d0dc5a86
  1. 1
      spring-boot/src/test/java/org/springframework/boot/bind/PropertiesConfigurationFactoryTests.java
  2. 2
      spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java

1
spring-boot/src/test/java/org/springframework/boot/bind/PropertiesConfigurationFactoryTests.java

@ -97,7 +97,6 @@ public class PropertiesConfigurationFactoryTests { @@ -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);
}

2
spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorTests.java

@ -88,7 +88,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests { @@ -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);

Loading…
Cancel
Save