You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces a deleteFromTableWhere() convenience method in
AbstractTransactionalJUnit4SpringContextTests and
AbstractTransactionalTestNGSpringContextTests that delegates to the
recently introduced method of the same name in JdbcTestUtils.
Issue: SPR-10639
Copy file name to clipboardExpand all lines: spring-test/src/main/java/org/springframework/test/context/junit4/AbstractTransactionalJUnit4SpringContextTests.java
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,7 @@ public abstract class AbstractTransactionalJUnit4SpringContextTests extends Abst
86
86
87
87
/**
88
88
* Set the {@code DataSource}, typically provided via Dependency Injection.
89
-
* <p>This method also instantiates the {@link #jdbcTemplate} instance
90
-
* variable.
89
+
* <p>This method also instantiates the {@link #jdbcTemplate} instance variable.
91
90
*/
92
91
@Autowired
93
92
publicvoidsetDataSource(DataSourcedataSource) {
@@ -103,49 +102,75 @@ public void setSqlScriptEncoding(String sqlScriptEncoding) {
103
102
}
104
103
105
104
/**
106
-
* Count the rows in the given table.
105
+
* Convenience method for counting the rows in the given table.
Copy file name to clipboardExpand all lines: spring-test/src/main/java/org/springframework/test/context/testng/AbstractTransactionalTestNGSpringContextTests.java
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -77,8 +77,7 @@ public abstract class AbstractTransactionalTestNGSpringContextTests extends Abst
77
77
78
78
/**
79
79
* Set the {@code DataSource}, typically provided via Dependency Injection.
80
-
* <p>This method also instantiates the {@link #jdbcTemplate} instance
81
-
* variable.
80
+
* <p>This method also instantiates the {@link #jdbcTemplate} instance variable.
82
81
*/
83
82
@Autowired
84
83
publicvoidsetDataSource(DataSourcedataSource) {
@@ -94,49 +93,75 @@ public void setSqlScriptEncoding(String sqlScriptEncoding) {
94
93
}
95
94
96
95
/**
97
-
* Count the rows in the given table.
96
+
* Convenience method for counting the rows in the given table.
0 commit comments