From: Andy Clement Date: Fri, 1 Feb 2019 00:44:03 +0000 (-0800) Subject: Add module tests back in - but streamlined X-Git-Tag: V1_9_3RC1~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b358a5d95e4e54d47e1e3e4a98745607dc848d81;p=aspectj.git Add module tests back in - but streamlined --- 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()); -// } - -}