db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DerbyJunitTestConfiguration" by JohnHEmbretsen
Date Fri, 13 Apr 2007 14:05:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by JohnHEmbretsen:
http://wiki.apache.org/db-derby/DerbyJunitTestConfiguration

The comment on the change is:
Fixed bugs in a code example

------------------------------------------------------------------------------
      suite.addTest(baseSuite());
  
      // run as client server
-     suite.addTest(TestConfiguration.clientServerDecorator(baseSuite());
+     suite.addTest(TestConfiguration.clientServerDecorator(baseSuite()));
  
      return new CleanDatabaseTestSetup(suite);
  }
  private static Test baseSuite() {
      TestSuite suite = new TestSuite(MyTest.class)
      if (JDBC.vmSupportsJDBC3()) {
-           suite.addTest("jdbc3SomeTestCase");
+           suite.addTest(new MyTestCase("jdbc3SomeTestCase"));
      }
      return suite;
  }

Mime
View raw message