aboutsummaryrefslogtreecommitdiffstats
path: root/weaver5/testsrc/Weaver5ModuleTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'weaver5/testsrc/Weaver5ModuleTests.java')
-rw-r--r--weaver5/testsrc/Weaver5ModuleTests.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/weaver5/testsrc/Weaver5ModuleTests.java b/weaver5/testsrc/Weaver5ModuleTests.java
new file mode 100644
index 000000000..434f3022a
--- /dev/null
+++ b/weaver5/testsrc/Weaver5ModuleTests.java
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * 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 logs)
+ *
+ *******************************************************************************/
+
+import org.aspectj.testing.util.TestUtil;
+import org.aspectj.util.LangUtil;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ */
+public class Weaver5ModuleTests extends TestCase {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(Weaver5ModuleTests.class.getName());
+ if (TestUtil.is15VMOrGreater()) {
+// if (LangUtil.is15VMOrGreater()) {
+ TestUtil.loadTestsReflectively(suite, "org.aspectj.weaver.tools.Java15PointcutExpressionTest", false);
+// }
+// TestUtil.loadTestsReflectively(suite, "Weaver515ModuleTests", true);
+ } else {
+ suite.addTest(TestUtil.testNamed("all tests require 1.5"));
+ }
+ return suite;
+ }
+ public static void main(String[] args) {
+ junit.textui.TestRunner.main(new String[] {Weaver5ModuleTests.class.getName()});
+ }
+
+}