Browse Source

Merge pull request #21104 from dreis2211

* pr/21104:
  Fix PropertiesMigrationListenerTests

Closes gh-21104
pull/21110/head
Phillip Webb 6 years ago
parent
commit
c2a21f00ee
  1. 4
      spring-boot-project/spring-boot-properties-migrator/src/test/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationListenerTests.java

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

@ -47,8 +47,8 @@ class PropertiesMigrationListenerTests { @@ -47,8 +47,8 @@ class PropertiesMigrationListenerTests {
@Test
void sampleReport(CapturedOutput output) {
this.context = createSampleApplication().run("--banner.charset=UTF8");
assertThat(output).contains("commandLineArgs").contains("spring.banner.charset")
this.context = createSampleApplication().run("--logging.file=test.log");
assertThat(output).contains("commandLineArgs").contains("logging.file.name")
.contains("Each configuration key has been temporarily mapped")
.doesNotContain("Please refer to the migration guide");
}

Loading…
Cancel
Save