aboutsummaryrefslogtreecommitdiffstats
path: root/testing-drivers/src/test/java/org/aspectj/testing/drivers/AjcTestsUsingJUnit.java
blob: 423404ee13c2b8c29f9690384f620ff2d686b257 (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 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);
	}
}