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
commit 0a0a56d35ebc9ac6bb76736c77633c3a6fd1882e Author: Gary Gregory <[email protected]> AuthorDate: Fri Nov 3 09:59:49 2023 -0400 Sort test members --- .../org/apache/commons/dbutils/DbUtilsTest.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/test/java/org/apache/commons/dbutils/DbUtilsTest.java b/src/test/java/org/apache/commons/dbutils/DbUtilsTest.java index bde5f01..7f8f638 100644 --- a/src/test/java/org/apache/commons/dbutils/DbUtilsTest.java +++ b/src/test/java/org/apache/commons/dbutils/DbUtilsTest.java @@ -237,6 +237,13 @@ public class DbUtilsTest { verify(mockConnection).close(); } + @Test + public void testCommitAndCloseQuietlyWithNullDoesNotThrowAnSQLException() { + + DbUtils.commitAndCloseQuietly(null); + + } + @Test public void testCommitAndCloseWithException() throws Exception { final Connection mockConnection = mock(Connection.class); @@ -250,6 +257,13 @@ public class DbUtilsTest { verify(mockConnection).close(); } + @Test + public void testLoadDriverReturnsFalse() { + + assertFalse(DbUtils.loadDriver("")); + + } + @Test public void testRollback() throws Exception { final Connection mockConnection = mock(Connection.class); @@ -330,18 +344,4 @@ public class DbUtilsTest { DbUtils.rollbackQuietly(mockConnection); verify(mockConnection).rollback(); } - - @Test - public void testCommitAndCloseQuietlyWithNullDoesNotThrowAnSQLException() { - - DbUtils.commitAndCloseQuietly(null); - - } - - @Test - public void testLoadDriverReturnsFalse() { - - assertFalse(DbUtils.loadDriver("")); - - } }
