commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r751574 - /commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/QueryRunnerTest.java
Date Mon, 09 Mar 2009 02:37:03 GMT
Author: sebb
Date: Mon Mar  9 02:37:03 2009
New Revision: 751574

URL: http://svn.apache.org/viewvc?rev=751574&view=rev
Log:
Remove unthrown Exceptions and unnecessary ;

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

Modified: commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/QueryRunnerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/QueryRunnerTest.java?rev=751574&r1=751573&r2=751574&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/QueryRunnerTest.java
(original)
+++ commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/QueryRunnerTest.java
Mon Mar  9 02:37:03 2009
@@ -59,7 +59,7 @@
         runner.fillStatement(stmt, new Object[] { null, null });
     }
 
-    private PreparedStatement fakeFillablePreparedStatement(final boolean simulateOracle,
final int[] types) throws NoSuchMethodException {
+    private PreparedStatement fakeFillablePreparedStatement(final boolean simulateOracle,
final int[] types) {
         // prepare a mock ParameterMetaData and a mock PreparedStatement to return the PMD
         final ParameterMetaData pmd = mockParameterMetaData(simulateOracle,types);
         InvocationHandler stmtHandler = new InvocationHandler() {
@@ -162,14 +162,14 @@
         } catch (RuntimeException expected) {}
     }
     
-    public void testRethrowNullMessage() throws SQLException {
+    public void testRethrowNullMessage() {
         // DBUTILS-40
         SQLException sqe = new SQLException((String)null);
         QueryRunner qr = new QueryRunner();
         try {
             qr.rethrow(sqe, "foo", new Object[] {"bar"});
             fail("rethrow didn't throw");
-        } catch (SQLException expected) {};
+        } catch (SQLException expected) {}
     }
     
     // indexed bean property



Mime
View raw message