db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r470223 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
Date Thu, 02 Nov 2006 04:17:21 GMT
Author: djd
Date: Wed Nov  1 20:17:20 2006
New Revision: 470223

URL: http://svn.apache.org/viewvc?view=rev&rev=470223
Log:
DERBY-2021 (partial) Wrap each suite (embedded and client) in CleanDatabaseSetup when using
the defaultSuite() method.
ResultSetCloseTest required this and it makes better sense than the single wrapping of both
suites with a clean database
decorator.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java?view=diff&rev=470223&r1=470222&r2=470223
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
Wed Nov  1 20:17:20 2006
@@ -165,7 +165,7 @@
      * for the passed in class running in embedded and the
      * default client server configuration.
      * <BR>
-     * The complete set of embedded and set of client server tests
+     * Each set of embedded and set of client server tests
      * is decorated with a CleanDatabaseTestSetup.
      * <BR>
      * The client server configuration is setup using clientServerSuite
@@ -174,10 +174,10 @@
     {
         final TestSuite suite = new TestSuite(suiteName(testClass));
         
-        suite.addTest(embeddedSuite(testClass));            
-        suite.addTest(clientServerSuite(testClass));
+        suite.addTest(new CleanDatabaseTestSetup(embeddedSuite(testClass)));            
+        suite.addTest(new CleanDatabaseTestSetup(clientServerSuite(testClass)));
  
-        return new CleanDatabaseTestSetup(suite);
+        return (suite);
     }
     
     /**



Mime
View raw message