From 6518ffe8016dfffc8c9b869a0d76657ce02be856 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 24 Jul 2017 16:58:05 +0100 Subject: [PATCH] Polish --- .../ConfigurationPropertiesBindingPostProcessorTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();