You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/03/22 20:46:57 UTC

svn commit: r1459954 - /commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java

Author: sebb
Date: Fri Mar 22 19:46:57 2013
New Revision: 1459954

URL: http://svn.apache.org/r1459954
Log:
Fix up or ignore deprecation warnings as appropriate

Modified:
    commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java

Modified: commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java?rev=1459954&r1=1459953&r2=1459954&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java (original)
+++ commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/AsyncQueryRunnerTest.java Fri Mar 22 19:46:57 2013
@@ -64,7 +64,7 @@ public class AsyncQueryRunnerTest {
         when(results.next()).thenReturn(false);
 
          handler = new ArrayHandler();
-         runner = new AsyncQueryRunner(dataSource, Executors.newFixedThreadPool(1));
+         runner = new AsyncQueryRunner(Executors.newFixedThreadPool(1), new QueryRunner(dataSource));
     }
 
     //
@@ -101,6 +101,7 @@ public class AsyncQueryRunnerTest {
         callGoodBatch(params);
     }
 
+    @SuppressWarnings("deprecation") // deliberate test of deprecated code
     @Test
     public void testGoodBatchPmdTrue() throws Exception {
         runner = new AsyncQueryRunner(dataSource, true, Executors.newFixedThreadPool(1));
@@ -253,6 +254,7 @@ public class AsyncQueryRunnerTest {
         callGoodQuery();
     }
 
+    @SuppressWarnings("deprecation") // deliberate test of deprecated code
     @Test
     public void testGoodQueryPmdTrue() throws Exception {
         runner = new AsyncQueryRunner(true, Executors.newFixedThreadPool(1));
@@ -389,6 +391,7 @@ public class AsyncQueryRunnerTest {
         callGoodUpdate();
     }
 
+    @SuppressWarnings("deprecation") // deliberate test of deprecated code
     @Test
     public void testGoodUpdatePmdTrue() throws Exception {
         runner = new AsyncQueryRunner(true, Executors.newFixedThreadPool(1));