diff options
Diffstat (limited to 'testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java')
-rw-r--r-- | testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java b/testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java new file mode 100644 index 000000000..423404ee1 --- /dev/null +++ b/testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java @@ -0,0 +1,48 @@ +/* ******************************************************************* + * 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 + * ******************************************************************/ + +package org.aspectj.testing.drivers; + +import junit.framework.*; + +/** + * Run ajc tests as JUnit test suites. + * This class is named to avoid automatic inclusion in + * most JUnit test runs. + */ +public class AjcTestsUsingJUnit extends TestCase { + private static final String[] SUITES = new String[] + { "../tests/ajcTestsFailing.xml", + "../tests/ajcTests.xml" + }; + + private static final String SKIPS = + "-ajctestSkipKeywords=purejava,knownLimitation"; + private static final String[][] OPTIONS = new String[][] + { new String[] { SKIPS }, + new String[] { SKIPS, "-emacssym" } + }; + + /** + * Create TestSuite with all SUITES running all OPTIONS. + * @return Test with all TestSuites and TestCases + * specified in SUITES and OPTIONS. + */ + public static Test suite() { + String name = AjcTestsUsingJUnit.class.getName(); + return HarnessJUnitUtil.suite(name, SUITES, OPTIONS); + } + + public AjcTestsUsingJUnit(String name) { + super(name); + } +} |