Polish test methods

See gh-18962
pull/19328/head
Johnny Lim 5 years ago committed by Stephane Nicoll
parent 992fcbf68f
commit ddb22f5a52

@ -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));
}

Loading…
Cancel
Save