db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r432451 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdateXXXTest.java
Date Fri, 18 Aug 2006 00:50:42 GMT
Author: djd
Date: Thu Aug 17 17:50:41 2006
New Revision: 432451

URL: http://svn.apache.org/viewvc?rev=432451&view=rev
Log:
Change UpdateXXXTest suite method to pick up test methods starting with test automatically
and
rename test that needs to be added when jdbc 2 or greater is supported.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdateXXXTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdateXXXTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdateXXXTest.java?rev=432451&r1=432450&r2=432451&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdateXXXTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/UpdateXXXTest.java
Thu Aug 17 17:50:41 2006
@@ -57,18 +57,11 @@
         if (usingDerbyNet())
             return suite;
         
-        suite.addTest(new UpdateXXXTest("testUpdateShort"));
-        suite.addTest(new UpdateXXXTest("testUpdateInt"));
-        suite.addTest(new UpdateXXXTest("testUpdateLong"));
-        suite.addTest(new UpdateXXXTest("testUpdateFloat"));
-        suite.addTest(new UpdateXXXTest("testUpdateDouble"));
-        suite.addTest(new UpdateXXXTest("testUpdateNull"));
-        suite.addTest(new UpdateXXXTest("testUpdateObjectWithNull"));
-        suite.addTest(new UpdateXXXTest("testUpdateString"));
+        suite.addTestSuite(UpdateXXXTest.class);
         
         // requires java.math.BigDecimal
         if (JDBC.vmSupportsJDBC2())
-            suite.addTest(new UpdateXXXTest("testUpdateBigDecimal"));
+            suite.addTest(new UpdateXXXTest("jdbc2testUpdateBigDecimal"));
                       
         return suite;
     }
@@ -239,7 +232,7 @@
      * @exception SQLException database access error. Causes test to 
      *                         fail with an error.
      */
-    public void testUpdateBigDecimal() 
+    public void jdbc2testUpdateBigDecimal() 
         throws SQLException
     {
         for (int i = 1; i <= COLUMNS; i++) {
@@ -302,7 +295,7 @@
     {
         rs.close();
         
-        rs = getXConnection().createStatement(ResultSet.TYPE_FORWARD_ONLY, 
+        rs = createStatement(ResultSet.TYPE_FORWARD_ONLY, 
                                  ResultSet.CONCUR_READ_ONLY).
             executeQuery(SELECT_STMT);
         
@@ -328,7 +321,7 @@
     {
         rs.close();
         
-        rs = getXConnection().createStatement(ResultSet.TYPE_FORWARD_ONLY, 
+        rs = createStatement(ResultSet.TYPE_FORWARD_ONLY, 
                                  ResultSet.CONCUR_READ_ONLY).
             executeQuery(SELECT_STMT);
         



Mime
View raw message