commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r748910 - in /commons/proper/dbutils/trunk: pom.xml src/test/org/apache/commons/dbutils/BaseTestCase.java
Date Sat, 28 Feb 2009 19:43:14 GMT
Author: bayard
Date: Sat Feb 28 19:43:14 2009
New Revision: 748910

URL: http://svn.apache.org/viewvc?rev=748910&view=rev
Log:
Deleting the suite concept and telling M2 to go build the tests and ignore the base class.
That way new tests will be autoadded rather than being missed. 

Modified:
    commons/proper/dbutils/trunk/pom.xml
    commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/BaseTestCase.java

Modified: commons/proper/dbutils/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/pom.xml?rev=748910&r1=748909&r2=748910&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/pom.xml (original)
+++ commons/proper/dbutils/trunk/pom.xml Sat Feb 28 19:43:14 2009
@@ -188,9 +188,9 @@
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
             <configuration>
-              <includes>
-                <include>**/BaseTestCase.java</include>
-              </includes>
+              <excludes>
+                <exclude>**/BaseTestCase.java</exclude>
+              </excludes>
           </configuration>
         </plugin>
         <plugin>

Modified: commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/BaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/BaseTestCase.java?rev=748910&r1=748909&r2=748910&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/BaseTestCase.java (original)
+++ commons/proper/dbutils/trunk/src/test/org/apache/commons/dbutils/BaseTestCase.java Sat
Feb 28 19:43:14 2009
@@ -133,34 +133,4 @@
         return MockResultSet.create(metaData, rows);
     }
 
-    /**
-     * Return a TestSuite containing all of our test cases.
-     */
-    public static Test suite() {
-        TestSuite suite = new TestSuite("All DbUtils Tests");
-
-        suite.addTestSuite(BasicRowProcessorTest.class);
-        suite.addTestSuite(BeanProcessorTest.class);
-        suite.addTestSuite(ProxyFactoryTest.class);
-        suite.addTestSuite(ResultSetIteratorTest.class);
-        suite.addTestSuite(QueryLoaderTest.class);
-        suite.addTestSuite(QueryRunnerTest.class);
-
-        // test handler implementations
-        suite.addTestSuite(ArrayHandlerTest.class);
-        suite.addTestSuite(ArrayListHandlerTest.class);
-        suite.addTestSuite(BeanHandlerTest.class);
-        suite.addTestSuite(BeanListHandlerTest.class);
-        suite.addTestSuite(MapHandlerTest.class);
-        suite.addTestSuite(MapListHandlerTest.class);
-        suite.addTestSuite(ScalarHandlerTest.class);
-        suite.addTestSuite(ColumnListHandlerTest.class);
-        suite.addTestSuite(KeyedHandlerTest.class);
-
-        suite.addTestSuite(StringTrimmedResultSetTest.class);
-        suite.addTestSuite(SqlNullCheckedResultSetTest.class);
-
-        return suite;
-    }
-
 }



Mime
View raw message