summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-03-03 09:36:49 (EST)
committerpelder2006-03-03 09:36:49 (EST)
commit2bc6eefb6d72170ed967eae05b1b08e087b52e40 (patch)
treeeba6c4cd4db0992869489c6c28c313827d7cb06b
parentb5d283b32110728453f0fb2cbff7ede8fe765d56 (diff)
downloadorg.eclipse.jet-2bc6eefb6d72170ed967eae05b1b08e087b52e40.zip
org.eclipse.jet-2bc6eefb6d72170ed967eae05b1b08e087b52e40.tar.gz
org.eclipse.jet-2bc6eefb6d72170ed967eae05b1b08e087b52e40.tar.bz2
[130184] Another attempt at getting the Build JUnits to run correctly.
-rw-r--r--tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllSuites.java72
-rw-r--r--tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllTests.java22
2 files changed, 77 insertions, 17 deletions
diff --git a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllSuites.java b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllSuites.java
index 65155d6..75ae7b0 100644
--- a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllSuites.java
+++ b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllSuites.java
@@ -1,22 +1,60 @@
+/**
+ * <copyright>
+ *
+ * Copyright (c) 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *
+ * </copyright>
+ *
+ * $Id$
+ */
+
package org.eclipse.jet.tests;
+
import junit.framework.Test;
import junit.framework.TestSuite;
-public class AllSuites {
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for org.eclipse.jet.tests");
- suite.addTest(org.eclipse.jet.tests.compiler.AllTests.suite());
- suite.addTest(org.eclipse.jet.tests.runtime.AllTests.suite());
- suite.addTest(org.eclipse.jet.tests.taglib.AllTests.suite());
- suite.addTest(org.eclipse.jet.tests.xpath.AllTests.suite());
- suite.addTest(org.eclipse.jet.tests.model.load.AllTests.suite());
- suite.addTest(org.eclipse.jet.tests.taglib.control.AllTests.suite());
- //$JUnit-BEGIN$
-
- //$JUnit-END$
- return suite;
- }
-
-}
+public class AllSuites extends TestSuite
+{
+ private static Test[] suites = new Test []{
+ org.eclipse.jet.tests.AllTests.suite(),
+ };
+
+ public static Test suite()
+ {
+ return new AllSuites("JET Build JUnit Test Suite");
+ }
+
+ public AllSuites()
+ {
+ super();
+ populateSuite();
+ }
+
+ public AllSuites(Class theClass)
+ {
+ super(theClass);
+ populateSuite();
+ }
+
+ public AllSuites(String name)
+ {
+ super(name);
+ populateSuite();
+ }
+
+ protected void populateSuite()
+ {
+ for (int i = 0; i < suites.length; i++)
+ {
+ addTest(suites[i]);
+ }
+ }
+} \ No newline at end of file
diff --git a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllTests.java b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllTests.java
new file mode 100644
index 0000000..5ef908c
--- /dev/null
+++ b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/AllTests.java
@@ -0,0 +1,22 @@
+package org.eclipse.jet.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Test for org.eclipse.jet.tests");
+ suite.addTest(org.eclipse.jet.tests.compiler.AllTests.suite());
+ suite.addTest(org.eclipse.jet.tests.runtime.AllTests.suite());
+ suite.addTest(org.eclipse.jet.tests.taglib.AllTests.suite());
+ suite.addTest(org.eclipse.jet.tests.xpath.AllTests.suite());
+ suite.addTest(org.eclipse.jet.tests.model.load.AllTests.suite());
+ suite.addTest(org.eclipse.jet.tests.taglib.control.AllTests.suite());
+ //$JUnit-BEGIN$
+
+ //$JUnit-END$
+ return suite;
+ }
+
+}