aboutsummaryrefslogtreecommitdiffstats
path: root/run-all-junit-tests/src/test
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-01-31 12:20:25 -0800
committerAndy Clement <aclement@pivotal.io>2019-01-31 12:20:25 -0800
commit241ce080c1c4a625ebcab1108663b74271a8eae1 (patch)
tree14309b1103d62d307d313e7f44ebecbca58caa7b /run-all-junit-tests/src/test
parentb5a9f23c80222f8d68985173c50016ab66c69115 (diff)
downloadaspectj-241ce080c1c4a625ebcab1108663b74271a8eae1.tar.gz
aspectj-241ce080c1c4a625ebcab1108663b74271a8eae1.zip
mavenizing run-all-junit-tests - wip
Diffstat (limited to 'run-all-junit-tests/src/test')
-rw-r--r--run-all-junit-tests/src/test/java/AllModuleTests.java26
-rw-r--r--run-all-junit-tests/src/test/java/AllTests.java81
-rw-r--r--run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java29
3 files changed, 136 insertions, 0 deletions
diff --git a/run-all-junit-tests/src/test/java/AllModuleTests.java b/run-all-junit-tests/src/test/java/AllModuleTests.java
new file mode 100644
index 000000000..b373f456a
--- /dev/null
+++ b/run-all-junit-tests/src/test/java/AllModuleTests.java
@@ -0,0 +1,26 @@
+/* *******************************************************************
+ * Copyright (c) 2005 Contributors.
+ * 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://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wes Isberg initial implementation
+ * ******************************************************************/
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+
+/**
+ * Alias to maintain convention for invoking JUnit from Ant
+ * by discovery of module root tests that name is *ModuleTests.
+ */
+public class AllModuleTests extends TestCase {
+ public static Test suite() {
+ // does not include compiler tests, i.e., tests/../TestsModuleTests
+ return AllTests.suite();
+ }
+
+}
diff --git a/run-all-junit-tests/src/test/java/AllTests.java b/run-all-junit-tests/src/test/java/AllTests.java
new file mode 100644
index 000000000..94d0a1822
--- /dev/null
+++ b/run-all-junit-tests/src/test/java/AllTests.java
@@ -0,0 +1,81 @@
+/* *******************************************************************
+ * Copyright (c) 2003 Contributors.
+ * 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:
+ * Wes Isberg initial implementation
+ * ******************************************************************/
+
+// default package
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.aspectj.ajde.AjdeModuleTests;
+import org.aspectj.ajde.core.AjdeCoreModuleTests;
+import org.aspectj.ajdt.EajcModuleTests;
+import org.aspectj.asm.AsmModuleTests;
+import org.aspectj.bridge.BridgeModuleTests;
+import org.aspectj.build.BuildModuleTests;
+import org.aspectj.loadtime.Loadtime5ModuleTests;
+import org.aspectj.loadtime.LoadtimeModuleTests;
+import org.aspectj.runtime.Aspectj5rtModuleTests;
+import org.aspectj.runtime.RuntimeModuleTests;
+import org.aspectj.testing.TestingClientModuleTests;
+import org.aspectj.testing.TestingDriversModuleTests;
+import org.aspectj.testing.TestingModuleTests;
+import org.aspectj.testing.util.TestUtil;
+import org.aspectj.testingutil.TestingUtilModuleTests;
+import org.aspectj.tools.ajbrowser.AjbrowserModuleTests;
+import org.aspectj.tools.ajdoc.AjdocModuleTests;
+import org.aspectj.tools.ant.TaskdefsModuleTests;
+import org.aspectj.util.LangUtil;
+import org.aspectj.util.UtilModuleTests;
+import org.aspectj.weaver.BcweaverModuleTests;
+import org.aspectj.weaver.MatcherModuleTests;
+import org.aspectj.weaver.Weaver5ModuleTests;
+
+public class AllTests extends TestCase {
+ public static final boolean skipSupportModules = false;
+
+ public static TestSuite suite() {
+ TestSuite suite = new TestSuite(AllTests.class.getName());
+ suite.addTest(AjbrowserModuleTests.suite());
+ suite.addTest(AjdeModuleTests.suite());
+ suite.addTest(AjdeCoreModuleTests.suite());
+ suite.addTest(AjdocModuleTests.suite());
+ suite.addTest(AsmModuleTests.suite());
+ suite.addTest(BridgeModuleTests.suite());
+ suite.addTest(LoadtimeModuleTests.suite());
+ suite.addTest(EajcModuleTests.suite());
+ // suite.addTest(LibModuleTests.suite());
+ suite.addTest(RuntimeModuleTests.suite());
+ suite.addTest(TaskdefsModuleTests.suite());
+ if (!skipSupportModules) {
+ suite.addTest(BuildModuleTests.suite());
+ suite.addTest(TestingModuleTests.suite());
+ suite.addTest(TestingClientModuleTests.suite());
+ suite.addTest(TestingDriversModuleTests.suite());
+ suite.addTest(TestingUtilModuleTests.suite());
+ }
+ suite.addTest(UtilModuleTests.suite());
+ suite.addTest(MatcherModuleTests.suite());
+ suite.addTest(BcweaverModuleTests.suite());
+ if (LangUtil.is15VMOrGreater()) {
+ suite.addTest(Aspectj5rtModuleTests.suite());
+ suite.addTest(Loadtime5ModuleTests.suite());
+ suite.addTest(Weaver5ModuleTests.suite());
+ } else {
+ suite.addTest(TestUtil.skipTest("for 1.5"));
+ }
+ return suite;
+ }
+
+ public AllTests(String name) {
+ super(name);
+ }
+
+}
diff --git a/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java b/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java
new file mode 100644
index 000000000..767bcb3ea
--- /dev/null
+++ b/run-all-junit-tests/src/test/java/RunTheseBeforeYouCommitTests.java
@@ -0,0 +1,29 @@
+/* *******************************************************************
+ * Copyright (c) 2005 Contributors.
+ * 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://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors (See CVS checkin's):
+ *
+ * ******************************************************************/
+
+import org.aspectj.tests.TestsModuleTests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class RunTheseBeforeYouCommitTests {
+
+ public static Test suite() {
+ String name = RunTheseBeforeYouCommitTests.class.getName();
+ TestSuite suite = new TestSuite(name);
+ // unit tests
+ suite.addTest(AllTests.suite());
+ // compiler tests
+ suite.addTest(TestsModuleTests.suite());
+ return suite;
+ }
+}