mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 04:59:10 +00:00
Polish tests
Closes gh-3946
This commit is contained in:
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user