aboutsummaryrefslogtreecommitdiffstats
path: root/ajdoc/src
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-01-31 16:44:03 -0800
committerAndy Clement <aclement@pivotal.io>2019-01-31 16:44:03 -0800
commitb358a5d95e4e54d47e1e3e4a98745607dc848d81 (patch)
tree7e7cd0dcc2652afbc588554f6a8841f23330875f /ajdoc/src
parent8f01a3063e2fe84e9ab7a8730a88c191d878dead (diff)
downloadaspectj-b358a5d95e4e54d47e1e3e4a98745607dc848d81.tar.gz
aspectj-b358a5d95e4e54d47e1e3e4a98745607dc848d81.zip
Add module tests back in - but streamlined
Diffstat (limited to 'ajdoc/src')
-rw-r--r--ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocModuleTests.java36
-rw-r--r--ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocTests.java17
-rw-r--r--ajdoc/src/test/java/org/aspectj/tools/ajdoc/JDKVersionTest.java31
3 files changed, 36 insertions, 48 deletions
diff --git a/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocModuleTests.java b/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocModuleTests.java
new file mode 100644
index 000000000..6210647e0
--- /dev/null
+++ b/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocModuleTests.java
@@ -0,0 +1,36 @@
+package org.aspectj.tools.ajdoc;
+/* *******************************************************************
+ * 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:
+ * Mik Kersten initial implementation
+ * ******************************************************************/
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+
+/**
+ * @author Mik Kersten
+ */
+public class AjdocModuleTests {
+ public static Test suite() {
+ TestSuite suite = new TestSuite(AjdocModuleTests.class.getName());
+ suite.addTestSuite(DeclareFormsTest.class);
+ suite.addTestSuite(SpacewarTestCase.class);
+ suite.addTestSuite(PatternsTestCase.class);
+ suite.addTestSuite(CoverageTestCase.class);
+ suite.addTestSuite(ITDTest.class);
+ suite.addTestSuite(FullyQualifiedArgumentTest.class);
+ suite.addTestSuite(EnumTest.class);
+ suite.addTestSuite(PointcutVisibilityTest.class);
+ suite.addTestSuite(ExecutionTestCase.class);
+ suite.addTestSuite(BugTest.class);
+ return suite;
+ }
+}
diff --git a/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocTests.java b/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocTests.java
index 52fe56b03..787a4160d 100644
--- a/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocTests.java
+++ b/ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocTests.java
@@ -32,22 +32,5 @@ public class AjdocTests {//extends TestCase {
"../runtime/bin"};
ASPECTJRT_PATH = FileUtil.getBestFile(paths);
}
-//
-// public static Test suite() {
-// TestSuite suite = new TestSuite(AjdocTests.class.getName());
-// //$JUnit-BEGIN$
-// suite.addTestSuite(DeclareFormsTest.class);
-// suite.addTestSuite(SpacewarTestCase.class);
-// suite.addTestSuite(PatternsTestCase.class);
-// suite.addTestSuite(CoverageTestCase.class);
-// suite.addTestSuite(ITDTest.class);
-// suite.addTestSuite(FullyQualifiedArgumentTest.class);
-// suite.addTestSuite(EnumTest.class);
-// suite.addTestSuite(PointcutVisibilityTest.class);
-// suite.addTestSuite(ExecutionTestCase.class);
-// suite.addTestSuite(BugTest.class);
-// //$JUnit-END$
-// return suite;
-// }
}
diff --git a/ajdoc/src/test/java/org/aspectj/tools/ajdoc/JDKVersionTest.java b/ajdoc/src/test/java/org/aspectj/tools/ajdoc/JDKVersionTest.java
deleted file mode 100644
index 33f0daecb..000000000
--- a/ajdoc/src/test/java/org/aspectj/tools/ajdoc/JDKVersionTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/* *******************************************************************
- * 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://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Mik Kersten initial implementation
- * ******************************************************************/
-package org.aspectj.tools.ajdoc;
-
-
-/**
- * @author Mik Kersten
- */
-public class JDKVersionTest extends AjdocTestCase {
-
-// public void testIsUsing1point4() {
-// String v = System.getProperty("java.class.version","44.0");
-// assertTrue(("49.0".compareTo(v) > 0) && ("48.0".compareTo(v) <= 0));
-// assertFalse(Util.isExecutingOnJava5());
-// }
-
- public void testNothing() {}
-// public void testIsUsing1point5() {
-// assertTrue(Util.isExecutingOnJava5());
-// }
-
-}