Skip to content

Commit cbfc7ba

Browse files
fix : build failure
1 parent fa25e5e commit cbfc7ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/test/java/org/springframework/boot/docs/howto/dataaccess/configuretwodatasources/MyDataSourcesConfigurationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import javax.sql.DataSource;
2222

23-
import org.apache.commons.dbcp2.BasicDataSource;
23+
import com.zaxxer.hikari.HikariDataSource;
2424
import org.junit.jupiter.api.Test;
2525

2626
import org.springframework.beans.factory.annotation.Autowired;
@@ -56,9 +56,9 @@ void validateConfiguration() throws SQLException {
5656
assertThat(this.context.getBean("dataSource")).isSameAs(this.dataSource);
5757
assertThat(this.dataSource.getConnection().getMetaData().getURL()).startsWith("jdbc:h2:mem:");
5858
assertThat(this.context.getBean("secondDataSource")).isSameAs(this.secondDataSource);
59-
assertThat(this.secondDataSource).extracting((dataSource) -> ((BasicDataSource) dataSource).getUrl())
59+
assertThat(this.secondDataSource).extracting((dataSource) -> ((HikariDataSource) dataSource).getUrl())
6060
.isEqualTo("jdbc:h2:mem:bar;DB_CLOSE_DELAY=-1");
61-
assertThat(this.secondDataSource).extracting((dataSource) -> ((BasicDataSource) dataSource).getMaxTotal())
61+
assertThat(this.secondDataSource).extracting((dataSource) -> ((HikariDataSource) dataSource).getMaxTotal())
6262
.isEqualTo(42);
6363
}
6464

0 commit comments

Comments
 (0)