Author: pete.muir(a)jboss.org
Date: 2009-01-09 09:41:48 -0500 (Fri, 09 Jan 2009)
New Revision: 860
Added:
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/WebBeansTCK.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/WebBeansTCKImpl.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/testng.xml
Removed:
tck/trunk/impl/testng.xml
Log:
A TCK runner
Added: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/WebBeansTCK.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/WebBeansTCK.java
(rev 0)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/WebBeansTCK.java 2009-01-09
14:41:48 UTC (rev 860)
@@ -0,0 +1,42 @@
+package org.jboss.webbeans.tck.api;
+
+
+public abstract class WebBeansTCK
+{
+
+ public static final void run()
+ {
+ WebBeansTCK webBeansTCK;
+ try
+ {
+ webBeansTCK = (WebBeansTCK)
Class.forName("org.jboss.webbeans.tck.impl.WebBeansTCKImpl").newInstance();
+ }
+ catch (InstantiationException e)
+ {
+ throw new IllegalStateException("WebBeansTCK cannot be run unless
webbeans-tck-impl.jar is on the classpath");
+ }
+ catch (IllegalAccessException e)
+ {
+ throw new IllegalStateException("WebBeansTCK cannot be run unless
webbeans-tck-impl.jar is on the classpath");
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new IllegalStateException("WebBeansTCK cannot be run unless
webbeans-tck-impl.jar is on the classpath");
+ }
+
+ // Run the TCK testsuite
+ webBeansTCK.runUnitTests();
+ }
+
+ public static void main(String[] args)
+ {
+ run();
+ }
+
+ protected WebBeansTCK()
+ {
+ }
+
+ public abstract void runUnitTests();
+
+}
Property changes on:
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/WebBeansTCK.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/WebBeansTCKImpl.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/WebBeansTCKImpl.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/WebBeansTCKImpl.java 2009-01-09
14:41:48 UTC (rev 860)
@@ -0,0 +1,27 @@
+package org.jboss.webbeans.tck.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.webbeans.tck.api.WebBeansTCK;
+import org.testng.TestNG;
+
+public class WebBeansTCKImpl extends WebBeansTCK
+{
+
+ public WebBeansTCKImpl()
+ {
+ super();
+ }
+
+ @Override
+ public void runUnitTests()
+ {
+ TestNG testNG = new TestNG();
+ List<String> suites = new ArrayList<String>();
+ suites.add("testng.xml");
+ testNG.setTestSuites(suites);
+ testNG.run();
+ }
+
+}
Property changes on:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/WebBeansTCKImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/testng.xml (from rev 858,
tck/trunk/impl/testng.xml)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/testng.xml
(rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/testng.xml 2009-01-09
14:41:48 UTC (rev 860)
@@ -0,0 +1,40 @@
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
+
+<suite name="WebBeans TCK" verbose="1" >
+
+ <test name="Web Beans TCK">
+ <groups>
+ <run>
+<!--
+ <exclude name="specialization" />
+ <exclude name="deployment" />
+ <exclude name="disposalMethod" />
+
+ <exclude name="observerMethod" />
+ <exclude name="deferredEvent" />
+ <exclude name="ejb3" />
+ <exclude name="webservice" />
+ <exclude name="annotationDefinition" />
+ <exclude name="webbeansxml" />
+ <exclude name="el" />
+ <exclude name="jms" />
+ <exclude name="interceptors" />
+ <exclude name="decorators" />
+ <exclude name="servlet" />
+
+ <exclude name="passivation" />
+ <exclude name="singletons" />
+ <exclude name="ejbjarxml" />
+ <exclude name="beanDestruction" />
+ <exclude name="commonAnnotations" />
+-->
+ <exclude name="stub" />
+ <exclude name="broken" />
+ </run>
+ </groups>
+ <packages>
+ <package name="org.jboss.webbeans.tck.impl" />
+ </packages>
+ </test>
+
+</suite>
\ No newline at end of file
Deleted: tck/trunk/impl/testng.xml
===================================================================
--- tck/trunk/impl/testng.xml 2009-01-09 14:32:25 UTC (rev 859)
+++ tck/trunk/impl/testng.xml 2009-01-09 14:41:48 UTC (rev 860)
@@ -1,43 +0,0 @@
-<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
-
-<suite name="WebBeans RI" verbose="1" >
-
- <test name="Web Beans RI">
- <groups>
- <run>
-<!--
- <exclude name="specialization" />
- <exclude name="deployment" />
- <exclude name="disposalMethod" />
-
- <exclude name="observerMethod" />
- <exclude name="deferredEvent" />
- <exclude name="ejb3" />
- <exclude name="webservice" />
- <exclude name="annotationDefinition" />
- <exclude name="webbeansxml" />
- <exclude name="el" />
- <exclude name="jms" />
- <exclude name="interceptors" />
- <exclude name="decorators" />
- <exclude name="servlet" />
-
- <exclude name="passivation" />
- <exclude name="singletons" />
- <exclude name="ejbjarxml" />
- <exclude name="beanDestruction" />
- <exclude name="commonAnnotations" />
--->
- <exclude name="stub" />
- <exclude name="broken" />
- </run>
- </groups>
- <packages>
- <package name="org.jboss.webbeans.test"></package>
- <package
name="org.jboss.webbeans.test.contexts"></package>
- <package name="org.jboss.webbeans.examples"></package>
- <package name="org.jboss.webbeans.test.ejb"></package>
- </packages>
- </test>
-
-</suite>
\ No newline at end of file
Show replies by date