Commit ddb22f5a authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Polish test methods

See gh-18962
parent 992fcbf6
...@@ -72,7 +72,7 @@ class DataSourceHealthContributorAutoConfigurationTests { ...@@ -72,7 +72,7 @@ class DataSourceHealthContributorAutoConfigurationTests {
} }
@Test @Test
void runWithRoutingAndEmbeddedDataSourceShouldFilterRoutingDataSource() { void runWithRoutingAndEmbeddedDataSourceShouldIncludeRoutingDataSource() {
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class, RoutingDatasourceConfig.class) this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class, RoutingDatasourceConfig.class)
.run((context) -> { .run((context) -> {
CompositeHealthContributor composite = context.getBean(CompositeHealthContributor.class); CompositeHealthContributor composite = context.getBean(CompositeHealthContributor.class);
...@@ -83,7 +83,7 @@ class DataSourceHealthContributorAutoConfigurationTests { ...@@ -83,7 +83,7 @@ class DataSourceHealthContributorAutoConfigurationTests {
} }
@Test @Test
void runWithOnlyRoutingDataSourceShouldFilterRoutingDataSource() { void runWithOnlyRoutingDataSourceShouldIncludeRoutingDataSource() {
this.contextRunner.withUserConfiguration(RoutingDatasourceConfig.class) this.contextRunner.withUserConfiguration(RoutingDatasourceConfig.class)
.run((context) -> assertThat(context).hasSingleBean(RoutingDataSourceHealthIndicator.class)); .run((context) -> assertThat(context).hasSingleBean(RoutingDataSourceHealthIndicator.class));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment