parent
3444ebbc05
commit
17d0dc5a86
|
@ -97,7 +97,6 @@ public class PropertiesConfigurationFactoryTests {
|
||||||
this.factory.setPropertySources(propertySources);
|
this.factory.setPropertySources(propertySources);
|
||||||
this.factory.setIgnoreUnknownFields(false);
|
this.factory.setIgnoreUnknownFields(false);
|
||||||
this.factory.afterPropertiesSet();
|
this.factory.afterPropertiesSet();
|
||||||
this.factory.getObject();
|
|
||||||
Foo foo = this.factory.getObject();
|
Foo foo = this.factory.getObject();
|
||||||
assertEquals("bar", foo.name);
|
assertEquals("bar", foo.name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void unknonwFieldFailureMessageContainsDetailsOfPropertyOrigin() {
|
public void unknownFieldFailureMessageContainsDetailsOfPropertyOrigin() {
|
||||||
this.context = new AnnotationConfigApplicationContext();
|
this.context = new AnnotationConfigApplicationContext();
|
||||||
EnvironmentTestUtils.addEnvironment(this.context, "com.example.baz:spam");
|
EnvironmentTestUtils.addEnvironment(this.context, "com.example.baz:spam");
|
||||||
this.context.register(TestConfiguration.class);
|
this.context.register(TestConfiguration.class);
|
||||||
|
|
Loading…
Reference in New Issue