Use type safe JdbcClient query

Update `JdbcClientAutoConfigurationTests` to use a type safe query
since Spring Framework now returns `Object` types when no type is
specified (see Spring Framework issue 31403).

See gh-37710
This commit is contained in:
Phillip Webb 2023-10-10 16:27:53 -07:00
parent b3ddec7793
commit 4ab104f5af

View File

@ -94,7 +94,7 @@ class JdbcClientAutoConfigurationTests {
private final Long count;
JdbcClientDataSourceMigrationValidator(JdbcClient jdbcClient) {
this.count = jdbcClient.sql("SELECT COUNT(*) from CITY").query().singleValue();
this.count = jdbcClient.sql("SELECT COUNT(*) from CITY").query(Long.class).single();
}
}