commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1229142 - /commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
Date Mon, 09 Jan 2012 13:32:36 GMT
Author: sebb
Date: Mon Jan  9 13:32:35 2012
New Revision: 1229142

URL: http://svn.apache.org/viewvc?rev=1229142&view=rev
Log:
Add test which checks that the correct number of columns are defined
This also allows Eclipse to run JUnit on the entire project (avoids notTestFound error)

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

Modified: commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/BaseTestCase.java?rev=1229142&r1=1229141&r2=1229142&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
(original)
+++ commons/proper/dbutils/trunk/src/test/java/org/apache/commons/dbutils/BaseTestCase.java
Mon Jan  9 13:32:35 2012
@@ -113,4 +113,10 @@ public class BaseTestCase extends TestCa
         return MockResultSet.create(metaData, rows);
     }
 
+    // Test which allows Eclipse to be run on full project (avoids no tests found)
+    // check that the rows are valid for the column definition
+    public void testCheckDataSizes() {
+        assertEquals("Row 1 must contain correct number of columns", columnNames.length,
row1.length);
+        assertEquals("Row 1 must contain correct number of columns", columnNames.length,
row2.length);
+    }
 }



Mime
View raw message