Account for new loggers property in FlywayPropertiesTets

See gh-35158
pull/35555/head
Andy Wilkinson 2 years ago
parent e3aac5913e
commit 75ffbc921d

@ -95,6 +95,12 @@ class FlywayPropertiesTests {
assertThat(properties.isExecuteInTransaction()).isEqualTo(configuration.isExecuteInTransaction());
}
@Test
void loggersIsOverriddenToSlf4j() {
assertThat(new FluentConfiguration().getLoggers()).containsExactly("auto");
assertThat(new FlywayProperties().getLoggers()).containsExactly("slf4j");
}
@Test
void expectedPropertiesAreManaged() {
Map<String, PropertyDescriptor> properties = indexProperties(
@ -109,8 +115,8 @@ class FlywayPropertiesTests {
ignoreProperties(configuration, "callbacks", "classLoader", "dataSource", "javaMigrations",
"javaMigrationClassProvider", "pluginRegister", "resourceProvider", "resolvers");
// Properties we don't want to expose
ignoreProperties(configuration, "resolversAsClassNames", "callbacksAsClassNames", "loggers", "driver",
"modernConfig", "currentResolvedEnvironment", "reportFilename");
ignoreProperties(configuration, "resolversAsClassNames", "callbacksAsClassNames", "driver", "modernConfig",
"currentResolvedEnvironment", "reportFilename");
// Handled by the conversion service
ignoreProperties(configuration, "baselineVersionAsString", "encodingAsString", "locationsAsStrings",
"targetAsString");

Loading…
Cancel
Save