Skip to content

Deprecate SimpleJdbcTestUtils in favor of JdbcTestUtils [SPR-9235] #13873

@spring-projects-issues

Description

@spring-projects-issues

Michel Zanini opened SPR-9235 and commented

Overview

Since SimpleJdbcTemplate is now deprecated, SimpleJdbcTestUtils should also be deprecated, and its methods could be moved to JdbcTestUtils, changing them to use JdbcTemplate instead.

Proposed Solution

The file attached is a patch where I did this. Also, I added two methods that are very useful for database testing:

  • dropTables(): this method is similar to deleteFromTables() but instead of removing all rows, it will drop the tables.
  • countRowsInTable(): countRowsInTable() already exists, but I added this overloaded method that takes a whereClause to augment the query.

Affects: 3.1.1

Attachments:

Sub-tasks:

Issue Links:

Referenced from: commits d7fd70f, a7d4377, bd0c4b4

3 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions