[Mulgara-svn] r835 - in branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter: . arithmetic

pag at mulgara.org pag at mulgara.org
Thu Apr 24 05:41:58 UTC 2008


Author: pag
Date: 2008-04-23 22:41:57 -0700 (Wed, 23 Apr 2008)
New Revision: 835

Modified:
   branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractIsIriFnUnitTest.java
   branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractLogicUnitTest.java
   branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/AbstractOperationUnitTest.java
Log:
Added empty suite() methods so that JUnit can't accidentally pick up methods named testXXX() and try to run them on these abstract classes

Modified: branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractIsIriFnUnitTest.java
===================================================================
--- branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractIsIriFnUnitTest.java	2008-04-24 04:10:11 UTC (rev 834)
+++ branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractIsIriFnUnitTest.java	2008-04-24 05:41:57 UTC (rev 835)
@@ -13,7 +13,9 @@
 import org.mulgara.query.rdf.LiteralImpl;
 import org.mulgara.query.rdf.URIReferenceImpl;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
+import junit.framework.TestSuite;
 
 /**
  * Tests the isURI and isIRI functions.
@@ -33,8 +35,12 @@
     super(name);
   }
 
+  public static Test suite() {
+    return new TestSuite();
+  }
+
   abstract public AbstractFilterValue createFn(RDFTerm arg);
-  
+
   public void testLiteral() throws Exception {
     AbstractFilterValue fn = createFn(t);
     assertTrue(f.equals(fn));

Modified: branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractLogicUnitTest.java
===================================================================
--- branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractLogicUnitTest.java	2008-04-24 04:10:11 UTC (rev 834)
+++ branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/AbstractLogicUnitTest.java	2008-04-24 05:41:57 UTC (rev 835)
@@ -18,7 +18,9 @@
 import org.mulgara.query.filter.value.Bool;
 import org.mulgara.query.filter.value.SimpleLiteral;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
+import junit.framework.TestSuite;
 
 /**
  * Tests binary logic operations.
@@ -37,6 +39,10 @@
     super(name);
   }
 
+  public static Test suite() {
+    return new TestSuite();
+  }
+
   protected void basicTest(AbstractFilterValue op, Bool result) throws Exception {
     op.setContextOwner(new TestContextOwner(new TestContext()));
     assertTrue(op.equals(result));

Modified: branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/AbstractOperationUnitTest.java
===================================================================
--- branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/AbstractOperationUnitTest.java	2008-04-24 04:10:11 UTC (rev 834)
+++ branches/mgr-61-sparql/src/jar/query/java/org/mulgara/query/filter/arithmetic/AbstractOperationUnitTest.java	2008-04-24 05:41:57 UTC (rev 835)
@@ -30,7 +30,9 @@
 import org.mulgara.query.filter.value.Var;
 import static org.mulgara.query.filter.value.TypedLiteral.XSD_NS;
 
+import junit.framework.Test;
 import junit.framework.TestCase;
+import junit.framework.TestSuite;
 
 
 /**
@@ -106,6 +108,10 @@
     super(name);
   }
 
+  public static Test suite() {
+    return new TestSuite();
+  }
+
   public void testLiteral() throws Exception {
     NumericLiteral op1i = new NumericLiteral(op1().intValue());
     NumericLiteral op2i = new NumericLiteral(op2().intValue());




More information about the Mulgara-svn mailing list