mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Update spring-test re: deprecated queryForInt()
Now invoking JdbcTemplate's queryForObject() method instead of the deprecated queryForInt() method within the test suite. Issue: SPR-10257
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ public abstract class AbstractTransactionalAnnotatedConfigClassTests {
|
||||
}
|
||||
|
||||
private int countRowsInTable(String tableName) {
|
||||
return jdbcTemplate.queryForInt("SELECT COUNT(0) FROM " + tableName);
|
||||
return jdbcTemplate.queryForObject("SELECT COUNT(0) FROM " + tableName, Integer.class);
|
||||
}
|
||||
|
||||
private int createPerson(String name) {
|
||||
|
||||
Reference in New Issue
Block a user