Skip to content

Commit ddb22f5

Browse files
izeyesnicoll
authored andcommitted
Polish test methods
See spring-projectsgh-18962
1 parent 992fcbf commit ddb22f5

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)