Skip to content

Commit 75ffbc9

Browse files
committed
Account for new loggers property in FlywayPropertiesTets
See gh-35158
1 parent e3aac59 commit 75ffbc9

File tree

1 file changed

+8
-2
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway

1 file changed

+8
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayPropertiesTests.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ void defaultValuesAreConsistent() {
9595
assertThat(properties.isExecuteInTransaction()).isEqualTo(configuration.isExecuteInTransaction());
9696
}
9797

98+
@Test
99+
void loggersIsOverriddenToSlf4j() {
100+
assertThat(new FluentConfiguration().getLoggers()).containsExactly("auto");
101+
assertThat(new FlywayProperties().getLoggers()).containsExactly("slf4j");
102+
}
103+
98104
@Test
99105
void expectedPropertiesAreManaged() {
100106
Map<String, PropertyDescriptor> properties = indexProperties(
@@ -109,8 +115,8 @@ void expectedPropertiesAreManaged() {
109115
ignoreProperties(configuration, "callbacks", "classLoader", "dataSource", "javaMigrations",
110116
"javaMigrationClassProvider", "pluginRegister", "resourceProvider", "resolvers");
111117
// Properties we don't want to expose
112-
ignoreProperties(configuration, "resolversAsClassNames", "callbacksAsClassNames", "loggers", "driver",
113-
"modernConfig", "currentResolvedEnvironment", "reportFilename");
118+
ignoreProperties(configuration, "resolversAsClassNames", "callbacksAsClassNames", "driver", "modernConfig",
119+
"currentResolvedEnvironment", "reportFilename");
114120
// Handled by the conversion service
115121
ignoreProperties(configuration, "baselineVersionAsString", "encodingAsString", "locationsAsStrings",
116122
"targetAsString");

0 commit comments

Comments
 (0)