cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r604845 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne: CayenneDOTestBase.java access/DataContextCase.java project/validator/ValidatorTestBase.java unit/MultiNodeCase.java
Date Mon, 17 Dec 2007 11:52:53 GMT
Author: aadamchik
Date: Mon Dec 17 03:52:52 2007
New Revision: 604845

URL: http://svn.apache.org/viewvc?rev=604845&view=rev
Log:
marking unit test superclasses as abstract to prevent eclipse from running them

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDOTestBase.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCase.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/project/validator/ValidatorTestBase.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/MultiNodeCase.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDOTestBase.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDOTestBase.java?rev=604845&r1=604844&r2=604845&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDOTestBase.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneDOTestBase.java
Mon Dec 17 03:52:52 2007
@@ -33,7 +33,7 @@
 import org.apache.cayenne.query.SelectQuery;
 import org.apache.cayenne.unit.CayenneCase;
 
-public class CayenneDOTestBase extends CayenneCase {
+public abstract class CayenneDOTestBase extends CayenneCase {
 
     public static final String artistName = "artist with one painting";
     public static final String galleryName = "my gallery";
@@ -127,10 +127,4 @@
         List pts = ctxt.performQuery(q);
         return (pts.size() > 0) ? (PaintingInfo) pts.get(0) : null;
     }
-    
-    // dummy test case so junit does not complain about missing tests
-    public void testNoOperation() {
-        assertTrue(true);
-    }
-
 }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCase.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCase.java?rev=604845&r1=604844&r2=604845&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCase.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextCase.java
Mon Dec 17 03:52:52 2007
@@ -35,7 +35,7 @@
 /**
  * @author Andrus Adamchik
  */
-public class DataContextCase extends CayenneCase {
+public abstract class DataContextCase extends CayenneCase {
 
     public static final int artistCount = 25;
     public static final int galleryCount = 10;
@@ -129,10 +129,5 @@
         context.commitChanges();
 
         return painting;
-    }
-    
-    // dummy test case so junit does not complain about missing tests
-    public void testNoOperation() {
-        assertTrue(true);
     }
 }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/project/validator/ValidatorTestBase.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/project/validator/ValidatorTestBase.java?rev=604845&r1=604844&r2=604845&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/project/validator/ValidatorTestBase.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/project/validator/ValidatorTestBase.java
Mon Dec 17 03:52:52 2007
@@ -36,7 +36,7 @@
 /**
  * @author Andrus Adamchik
  */
-public class ValidatorTestBase extends TestCase {
+public abstract class ValidatorTestBase extends TestCase {
 
     protected static int counter = 1;
 
@@ -104,10 +104,5 @@
         oa1.setDbAttribute(a1);
 
         return oa1;
-    }
-    
-    // dummy test case so junit does not complain about missing tests
-    public void testNoOperation() {
-        assertTrue(true);
     }
 }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/MultiNodeCase.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/MultiNodeCase.java?rev=604845&r1=604844&r2=604845&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/MultiNodeCase.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/MultiNodeCase.java
Mon Dec 17 03:52:52 2007
@@ -28,7 +28,7 @@
  * 
  * @author Andrus Adamchik
  */
-public class MultiNodeCase extends CayenneCase {
+public abstract class MultiNodeCase extends CayenneCase {
 
     static final String NODE1 = "map-db1";
     static final String NODE2 = "map-db2";
@@ -57,10 +57,5 @@
 
     public DataNode getNode2() {
         return accessStack.getDataDomain().getNode(NODE2);
-    }
-    
-    // dummy test case so junit does not complain about missing tests
-    public void testNoOperation() {
-        assertTrue(true);
     }
 }



Mime
View raw message