]> source.dussan.org Git - aspectj.git/commitdiff
Add module tests back in - but streamlined
authorAndy Clement <aclement@pivotal.io>
Fri, 1 Feb 2019 00:44:03 +0000 (16:44 -0800)
committerAndy Clement <aclement@pivotal.io>
Fri, 1 Feb 2019 00:44:03 +0000 (16:44 -0800)
ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocModuleTests.java [new file with mode: 0644]
ajdoc/src/test/java/org/aspectj/tools/ajdoc/AjdocTests.java
ajdoc/src/test/java/org/aspectj/tools/ajdoc/JDKVersionTest.java [deleted file]

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 (file)
index 0000000..6210647
--- /dev/null
@@ -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;
+    }
+}
index 52fe56b03a442c9d41124665be802019171cccc3..787a4160d993d6d597f48b7330a323c79e03116f 100644 (file)
@@ -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 (file)
index 33f0dae..0000000
+++ /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());
-//    }
-    
-}