abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r415214 - in /incubator/abdera/java/trunk: build/build.xml core/src/test/java/org/apache/abdera/test/core/TestSuite.java parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java
Date Sun, 18 Jun 2006 23:28:37 GMT
Author: jmsnell
Date: Sun Jun 18 16:28:37 2006
New Revision: 415214

URL: http://svn.apache.org/viewvc?rev=415214&view=rev
Log:
Get the tests running via ant.

* build/build.xml
 Add new properties, parser.test.java and parser.test.resources.
 (test): Run new test suites.
 (build): Copy test resources from the correct location.

* core/src/test/java/org/apache/abdera/test/core/TestSuite.java: New suite.

* parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java: Ditto.

Added:
    incubator/abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/TestSuite.java
    incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java
Modified:
    incubator/abdera/java/trunk/build/build.xml

Modified: incubator/abdera/java/trunk/build/build.xml
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/build/build.xml?rev=415214&r1=415213&r2=415214&view=diff
==============================================================================
--- incubator/abdera/java/trunk/build/build.xml (original)
+++ incubator/abdera/java/trunk/build/build.xml Sun Jun 18 16:28:37 2006
@@ -24,7 +24,9 @@
   <property name="core.jar" value="${dist}/${ant.project.name}.core.${version}.jar" />
   <property name="parser" value="${basedir}/parser" />
   <property name="parser.src" value="${parser}/src/main/java" />
-  <property name="parser.test" value="${parser}/src/test/java" />
+  <property name="parser.test" value="${parser}/src/test" />
+  <property name="parser.test.java" value="${parser}/src/test/java" />
+  <property name="parser.test.resources" value="${parser}/src/test/resources" />
   <property name="parser.work" value="${work}/parser" />
   <property name="parser.jar" value="${dist}/${ant.project.name}.parser.${version}.jar"
/>
 
@@ -90,12 +92,12 @@
            destdir="${parser.work}"
            classpathref="jar.dependencies" 
            classpath="${core.work}" />
-  	<javac srcdir="${parser.test}"
+  	<javac srcdir="${parser.test.java}"
   	       destdir="${test}"
   	       classpathref="jar.dependencies"
   	       classpath="${core.work};${parser.work}" />
   	<copy todir="${test}">
-  	  <fileset dir="${parser.test}">
+  	  <fileset dir="${parser.test.resources}">
   	    <include name="*.xml"/>
   	  </fileset>
   	</copy>
@@ -114,9 +116,15 @@
   </target>
   
   <target name="test" depends="build">
-    <!--java classpathref="jar.dependencies" 
+    <echo>Running Core Tests...</echo>
+    <java classpathref="jar.dependencies" 
           classpath="${core.work}:${parser.work}:${server.work}:${test}"
-          classname="org.apache.abdera.test.TestSuite" /-->
+          classname="org.apache.abdera.test.core.TestSuite" />
+
+    <echo>Running Stax Parser Tests...</echo>
+    <java classpathref="jar.dependencies" 
+          classpath="${core.work}:${parser.work}:${server.work}:${test}"
+          classname="org.apache.abdera.test.parser.stax.TestSuite" />
   </target>
 
   <target name="clean">

Added: incubator/abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/TestSuite.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/TestSuite.java?rev=415214&view=auto
==============================================================================
--- incubator/abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/TestSuite.java
(added)
+++ incubator/abdera/java/trunk/core/src/test/java/org/apache/abdera/test/core/TestSuite.java
Sun Jun 18 16:28:37 2006
@@ -0,0 +1,30 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  The ASF licenses this file to You
+* under the Apache License, Version 2.0 (the "License"); you may not
+* use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.  For additional information regarding
+* copyright in this work, please see the NOTICE file in the top level
+* directory of this distribution.
+*/
+package org.apache.abdera.test.core;
+
+import org.apache.abdera.test.core.CoreTest;
+
+public class TestSuite extends junit.framework.TestSuite {
+  public static void main(String[] args) {
+    junit.textui.TestRunner.run(new TestSuite());
+  }
+
+  public TestSuite() {
+    addTestSuite(CoreTest.class);
+  }
+}

Added: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java?rev=415214&view=auto
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java
(added)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/TestSuite.java
Sun Jun 18 16:28:37 2006
@@ -0,0 +1,38 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  The ASF licenses this file to You
+* under the Apache License, Version 2.0 (the "License"); you may not
+* use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.  For additional information regarding
+* copyright in this work, please see the NOTICE file in the top level
+* directory of this distribution.
+*/
+package org.apache.abdera.test.parser.stax;
+
+import org.apache.abdera.test.parser.stax.AtomConformanceTest;
+import org.apache.abdera.test.parser.stax.FeedParserTest;
+import org.apache.abdera.test.parser.stax.FeedValidatorTest;
+import org.apache.abdera.test.parser.stax.FOMTest;
+import org.apache.abdera.test.parser.stax.ParserTest;
+
+public class TestSuite extends junit.framework.TestSuite {
+  public static void main(String[] args) {
+    junit.textui.TestRunner.run(new TestSuite());
+  }
+
+  public TestSuite() {
+    addTestSuite(AtomConformanceTest.class);
+    addTestSuite(FeedParserTest.class);
+    addTestSuite(FeedValidatorTest.class);
+    addTestSuite(FOMTest.class);
+    addTestSuite(ParserTest.class);
+  }
+}



Mime
View raw message