Polish test methods
See gh-18962
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user