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 DanDebrunner
Date Tue, 17 Oct 2006 16:58:13 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 DanDebrunner:
http://wiki.apache.org/db-derby/DerbyJunitTestConfiguration

------------------------------------------------------------------------------
  === All test fixtures running as embedded and client ===
  <!> Note this default suite setup includes a !CleanDatabaseTestSetup.
  {{{
- public Test suite() {
+ public static Test suite() {
     return TestConfiguration.defaultSuite(MyTest.class);
  }
  }}}
  === All fixtures running as embedded and client but some based upon JDBC level ===
  <!> Note manually added !CleanDatabaseTestSetup.
  {{{
- public Test suite() {
+ public static Test suite() {
      TestSuite suite = new TestSuite();
  
      // run as embedded
@@ -49, +49 @@

  
      return new CleanDatabaseTestSetup(suite);
  }
- private Test baseSuite() {
+ private static Test baseSuite() {
      TestSuite suite = new TestSuite(MyTest.class)
      if (JDBC.vmSupportsJDBC3()) {
            suite.addTest("jdbc3SomeTestCase");
@@ -62, +62 @@

  === All test fixtures running only as embedded ===
  <!> Note this setup does '''not''' include a !CleanDatabaseTestSetup.
  {{{
- public Test suite() {
+ public static Test suite() {
     return TestConfiguration.embeddedSuite(MyTest.class);
  }
  }}}
@@ -70, +70 @@

  === All test fixtures running only as client ===
  <!> Note this setup does '''not''' include a !CleanDatabaseTestSetup.
  {{{
- public Test suite() {
+ public static Test suite() {
     return TestConfiguration.clientServerSuite(MyTest.class);
  }
  }}} 

Mime
View raw message