[savara-commits] savara SVN: r230 - in trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests: src/java/org/jboss/savara/tools/wsdl/tests and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Sat May 22 17:36:44 EDT 2010


Author: objectiser
Date: 2010-05-22 17:36:43 -0400 (Sat, 22 May 2010)
New Revision: 230

Added:
   trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/src/java/org/jboss/savara/tools/wsdl/tests/AllTests.java
   trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/test.xml
Modified:
   trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/build.properties
Log:
Added some support for invoking the junit tests, but at the moment it fails to find the test suite.

Modified: trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/build.properties
===================================================================
--- trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/build.properties	2010-05-20 19:08:55 UTC (rev 229)
+++ trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/build.properties	2010-05-22 21:36:43 UTC (rev 230)
@@ -1,4 +1,12 @@
 source.. = src/java/
 output.. = classes/
 bin.includes = META-INF/,\
-               .
+               .,\
+               test.xml
+src.includes = test.xml,\
+               src/,\
+               build.properties,\
+               META-INF/,\
+               .settings/,\
+               .project,\
+               .classpath

Added: trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/src/java/org/jboss/savara/tools/wsdl/tests/AllTests.java
===================================================================
--- trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/src/java/org/jboss/savara/tools/wsdl/tests/AllTests.java	                        (rev 0)
+++ trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/src/java/org/jboss/savara/tools/wsdl/tests/AllTests.java	2010-05-22 21:36:43 UTC (rev 230)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ */
+package org.jboss.savara.tools.wsdl.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+	public static Test suite() {
+		TestSuite suite = new TestSuite();
+		
+		suite.addTestSuite(WSDLGeneratorTest.class);
+
+		return suite;
+	}
+}
\ No newline at end of file

Added: trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/test.xml
===================================================================
--- trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/test.xml	                        (rev 0)
+++ trunk/tools/eclipse/org.jboss.savara.tools.wsdl.tests/test.xml	2010-05-22 21:36:43 UTC (rev 230)
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<project name="testsuite" default="run" basedir="."> 
+  <property name="eclipse-home" value="${base}/eclipse"/>
+  <property name="plugin-name" value="org.jboss.savara.tools.wsdl"/>
+  <property name="library-file" location="${eclipse-home}/plugins/org.eclipse.test_3.2.0/library.xml"/>
+  
+  <!-- This target holds all initialization code that needs to be done for
+       all tests that are to be run. Initialization for individual tests
+       should be done within the body of the suite target. -->
+  <target name="init">
+    <tstamp/>
+    <delete failonerror="false">
+      <fileset dir="${eclipse-home}" includes="org*.xml"/>
+    </delete>
+  </target>
+  
+  <!-- This target defines the tests that need to be run. -->
+  <target name="suite">
+    <property name="test-workspace" location="${base}/test-workspace"/>
+    
+    <delete failonerror="false" dir="${test-workspace}" quiet="true"/>
+    
+    <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
+      <property name="data-dir" value="${test-workspace}"/>
+      <property name="plugin-name" value="${plugin-name}"/>
+        <property name="classname" value="org.jboss.savara.tools.wsdl.tests.AllTests"/>
+    </ant>           
+  </target>
+  
+  <!-- This target holds code to cleanup the testing environment after
+       after all of the tests have been run. We can use this target to
+       delete temporary files that have been created. -->
+  <target name="cleanup">
+  
+  </target>
+  
+  <!-- This target runs the test suite. Any actions that need to happen
+       after all the tests have been run should go here. -->
+  <target name="run" depends="init,suite,cleanup">
+    <copy failonerror="false" todir="${base}/surefire-reports">
+      <fileset dir="${eclipse-home}" includes="org*.xml"/>
+    </copy>    
+    
+    <move failonerror="false" file="${base}/surefire-reports/org.jboss.savara.tools.wsdl.tests.AllTests.xml" tofile="${base}/surefire-reports/TEST-org.jboss.savara.tools.wsdl.tests.AllTests.xml"/>
+  </target>
+</project>
\ No newline at end of file



More information about the savara-commits mailing list