Commit a5da441b authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #18962 from izeye

* pr/18962:
  Polish test methods

Closes gh-18962
parents 992fcbf6 ddb22f5a
......@@ -72,7 +72,7 @@ class DataSourceHealthContributorAutoConfigurationTests {
}
@Test
void runWithRoutingAndEmbeddedDataSourceShouldFilterRoutingDataSource() {
void runWithRoutingAndEmbeddedDataSourceShouldIncludeRoutingDataSource() {
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class, RoutingDatasourceConfig.class)
.run((context) -> {
CompositeHealthContributor composite = context.getBean(CompositeHealthContributor.class);
......@@ -83,7 +83,7 @@ class DataSourceHealthContributorAutoConfigurationTests {
}
@Test
void runWithOnlyRoutingDataSourceShouldFilterRoutingDataSource() {
void runWithOnlyRoutingDataSourceShouldIncludeRoutingDataSource() {
this.contextRunner.withUserConfiguration(RoutingDatasourceConfig.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