This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbutils.git
The following commit(s) were added to refs/heads/master by this push:
new 0d32b33 Use better JUnit API
0d32b33 is described below
commit 0d32b33a68c597cbb2ff1109f610257509c0f7b3
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Mar 22 16:14:11 2024 -0400
Use better JUnit API
---
.../commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/src/test/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java
b/src/test/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java
index 2fa89c1..e19db92 100644
---
a/src/test/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java
+++
b/src/test/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSetTest.java
@@ -325,9 +325,9 @@ public class SqlNullCheckedResultSetTest extends
BaseTestCase {
*/
public void testGetBoolean() throws SQLException {
- assertEquals(false, rs.getBoolean(1));
+ assertFalse(rs.getBoolean(1));
assertTrue(rs.wasNull());
- assertEquals(false, rs.getBoolean("column"));
+ assertFalse(rs.getBoolean("column"));
assertTrue(rs.wasNull());
// Set what gets returned to something other than the default
rs2.setNullBoolean(true);
@@ -701,7 +701,7 @@ public class SqlNullCheckedResultSetTest extends
BaseTestCase {
*/
public void testSetNullBoolean() throws SQLException {
- assertEquals(false, rs2.getNullBoolean());
+ assertFalse(rs2.getNullBoolean());
// Set what gets returned to something other than the default
rs2.setNullBoolean(true);
assertTrue( rs.getBoolean(1));