Merge pull request #18962 from izeye

* pr/18962:
  Polish test methods

Closes gh-18962
This commit is contained in:
Stephane Nicoll 2019-11-12 14:10:30 +01:00
commit a5da441bc4
1 changed files with 2 additions and 2 deletions

View File

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