Skip to content

Commit 8ff6831

Browse files
format and fix compilation issue
1 parent cbfc7ba commit 8ff6831

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ 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) -> ((HikariDataSource) dataSource).getUrl())
59+
assertThat(this.secondDataSource).extracting((dataSource) -> ((HikariDataSource) dataSource).getJdbcUrl())
6060
.isEqualTo("jdbc:h2:mem:bar;DB_CLOSE_DELAY=-1");
61-
assertThat(this.secondDataSource).extracting((dataSource) -> ((HikariDataSource) dataSource).getMaxTotal())
61+
assertThat(this.secondDataSource)
62+
.extracting((dataSource) -> ((HikariDataSource) dataSource).getMaximumPoolSize())
6263
.isEqualTo(42);
6364
}
6465

0 commit comments

Comments
 (0)