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

Loading…
Cancel
Save