Skip to content

Commit a5da441

Browse files
committed
Merge pull request spring-projects#18962 from izeye
* pr/18962: Polish test methods Closes spring-projectsgh-18962
2 parents 992fcbf + ddb22f5 commit a5da441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/jdbc/DataSourceHealthContributorAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void runWhenMultipleDataSourceBeansShouldCreateCompositeIndicator() {
7272
}
7373

7474
@Test
75-
void runWithRoutingAndEmbeddedDataSourceShouldFilterRoutingDataSource() {
75+
void runWithRoutingAndEmbeddedDataSourceShouldIncludeRoutingDataSource() {
7676
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class, RoutingDatasourceConfig.class)
7777
.run((context) -> {
7878
CompositeHealthContributor composite = context.getBean(CompositeHealthContributor.class);
@@ -83,7 +83,7 @@ void runWithRoutingAndEmbeddedDataSourceShouldFilterRoutingDataSource() {
8383
}
8484

8585
@Test
86-
void runWithOnlyRoutingDataSourceShouldFilterRoutingDataSource() {
86+
void runWithOnlyRoutingDataSourceShouldIncludeRoutingDataSource() {
8787
this.contextRunner.withUserConfiguration(RoutingDatasourceConfig.class)
8888
.run((context) -> assertThat(context).hasSingleBean(RoutingDataSourceHealthIndicator.class));
8989
}

0 commit comments

Comments
 (0)