aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java
blob: 7154ef32cf663d03b77fe72144db1668d649b387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 v 2.0
 * which accompanies this distribution and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
 *
 * 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);
	}
}