Browse Source

Polish

pull/36048/head
Phillip Webb 3 years ago
parent
commit
2f39ebfe89
  1. 4
      spring-boot-project/spring-boot-properties-migrator/src/test/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationReporterTests.java

4
spring-boot-project/spring-boot-properties-migrator/src/test/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationReporterTests.java

@ -162,7 +162,7 @@ class PropertiesMigrationReporterTests {
} }
@Test @Test
void mapPropertiesDeprecatedNoReplacement() throws IOException { void mapPropertiesDeprecatedNoReplacement() {
this.environment.getPropertySources() this.environment.getPropertySources()
.addFirst( .addFirst(
new MapPropertySource("first", Collections.singletonMap("custom.map-no-replacement.key", "value"))); new MapPropertySource("first", Collections.singletonMap("custom.map-no-replacement.key", "value")));
@ -173,7 +173,7 @@ class PropertiesMigrationReporterTests {
} }
@Test @Test
void mapPropertiesDeprecatedWithReplacement() throws IOException { void mapPropertiesDeprecatedWithReplacement() {
this.environment.getPropertySources() this.environment.getPropertySources()
.addFirst(new MapPropertySource("first", .addFirst(new MapPropertySource("first",
Collections.singletonMap("custom.map-with-replacement.key", "value"))); Collections.singletonMap("custom.map-with-replacement.key", "value")));

Loading…
Cancel
Save