Skip to content

Commit

Permalink
Sort test members
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 3, 2023
1 parent 06970a7 commit 0a0a56d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/test/java/org/apache/commons/dbutils/DbUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ public void testCommitAndCloseQuietlyWithException() throws Exception {
verify(mockConnection).close();
}

@Test
public void testCommitAndCloseQuietlyWithNullDoesNotThrowAnSQLException() {

DbUtils.commitAndCloseQuietly(null);

}

@Test
public void testCommitAndCloseWithException() throws Exception {
final Connection mockConnection = mock(Connection.class);
Expand All @@ -250,6 +257,13 @@ public void testCommitAndCloseWithException() throws Exception {
verify(mockConnection).close();
}

@Test
public void testLoadDriverReturnsFalse() {

assertFalse(DbUtils.loadDriver(""));

}

@Test
public void testRollback() throws Exception {
final Connection mockConnection = mock(Connection.class);
Expand Down Expand Up @@ -330,18 +344,4 @@ public void testRollbackQuietlyWithException() throws Exception {
DbUtils.rollbackQuietly(mockConnection);
verify(mockConnection).rollback();
}

@Test
public void testCommitAndCloseQuietlyWithNullDoesNotThrowAnSQLException() {

DbUtils.commitAndCloseQuietly(null);

}

@Test
public void testLoadDriverReturnsFalse() {

assertFalse(DbUtils.loadDriver(""));

}
}

0 comments on commit 0a0a56d

Please sign in to comment.