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 b3f314fe09cd8130304661e0068ac1ff800bb020
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jul 31 09:06:40 2023 -0400

    Use compact array notation
---
 .../apache/commons/dbutils/AsyncQueryRunnerTest.java | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java 
b/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java
index dcb5632..bf81e6e 100644
--- a/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java
+++ b/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java
@@ -270,7 +270,7 @@ public class AsyncQueryRunnerTest {
 
     @Test
     public void testAddBatchException() throws Exception {
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         callBatchWithException("select * from blah where ? = ?", params);
     }
@@ -286,7 +286,7 @@ public class AsyncQueryRunnerTest {
 
     @Test
     public void testExecuteBatchException() throws Exception {
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         callBatchWithException("select * from blah where ? = ?", params);
     }
@@ -306,7 +306,7 @@ public class AsyncQueryRunnerTest {
 
     @Test
     public void testGoodBatch() throws Exception {
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         callGoodBatch(params);
     }
@@ -314,7 +314,7 @@ public class AsyncQueryRunnerTest {
     @Test
     public void testGoodBatchDefaultConstructor() throws Exception {
         runner = new AsyncQueryRunner(Executors.newFixedThreadPool(1));
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         callGoodBatch(conn, params);
     }
@@ -323,7 +323,7 @@ public class AsyncQueryRunnerTest {
     @Test
     public void testGoodBatchPmdTrue() throws Exception {
         runner = new AsyncQueryRunner(dataSource, true, 
Executors.newFixedThreadPool(1));
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         callGoodBatch(params);
     }
@@ -398,7 +398,7 @@ public class AsyncQueryRunnerTest {
 
     @Test(expected=ExecutionException.class)
     public void testNullConnectionBatch() throws Exception {
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         when(dataSource.getConnection()).thenReturn(null);
 
@@ -432,14 +432,14 @@ public class AsyncQueryRunnerTest {
 
     @Test
     public void testNullParamsBatch() throws Exception {
-        final String[][] params = new String[][] { { null, "unit" }, { "test", 
null } };
+        final String[][] params = { { null, "unit" }, { "test", null } };
 
         callGoodBatch(params);
     }
 
     @Test(expected=ExecutionException.class)
     public void testNullSqlBatch() throws Exception {
-        final String[][] params = new String[][] { { "unit", "unit" }, { 
"test", "test" } };
+        final String[][] params = { { "unit", "unit" }, { "test", "test" } };
 
         runner.batch(null, params).get();
     }
@@ -456,7 +456,7 @@ public class AsyncQueryRunnerTest {
 
     @Test
     public void testTooFewParamsBatch() throws Exception {
-        final String[][] params = new String[][] { { "unit" }, { "test" } };
+        final String[][] params = { { "unit" }, { "test" } };
 
         callBatchWithException("select * from blah where ? = ?", params);
     }
@@ -473,7 +473,7 @@ public class AsyncQueryRunnerTest {
 
     @Test
     public void testTooManyParamsBatch() throws Exception {
-        final String[][] params = new String[][] { { "unit", "unit", "unit" }, 
{ "test", "test", "test" } };
+        final String[][] params = { { "unit", "unit", "unit" }, { "test", 
"test", "test" } };
 
         callBatchWithException("select * from blah where ? = ?", params);
     }

Reply via email to