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 ef23539502..9df420f3cb 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 @@ -421,13 +421,15 @@ public class ConfigurationPropertiesBindingPostProcessorTests { } @Test - public void unboundElementsFromSystemEnvironmentShouldNotThrowException() throws Exception { + public void unboundElementsFromSystemEnvironmentShouldNotThrowException() + throws Exception { this.context = new AnnotationConfigApplicationContext(); ConfigurableEnvironment env = this.context.getEnvironment(); MutablePropertySources propertySources = env.getPropertySources(); propertySources.addFirst(new MapPropertySource("test", Collections.singletonMap("com.example.foo", 5))); - propertySources.addLast(new SystemEnvironmentPropertySource(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, + propertySources.addLast(new SystemEnvironmentPropertySource( + StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME, Collections.singletonMap("COM_EXAMPLE_OTHER", "10"))); this.context.register(TestConfiguration.class); this.context.refresh();