summaryrefslogtreecommitdiffstats
path: root/weaver5/testsrc/Weaver5ModuleTests.java
blob: b8bb1170b25b30f097dad6d6a04beb5d2cf47d6d (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
/*******************************************************************************
 * 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://eclipse.org/legal/epl-v10.html
 *
 * Contributors: (See CVS logs)
 * 
 *******************************************************************************/

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.aspectj.testing.util.TestUtil;
import org.aspectj.weaver.tools.PointcutExpressionTest;

/**
 */
public class Weaver5ModuleTests extends TestCase {

    public static Test suite() {
        TestSuite suite = new TestSuite(Weaver5ModuleTests.class.getName());
        if (TestUtil.is15VMOrGreater()) {
	            TestUtil.loadTestsReflectively(suite, "org.aspectj.weaver.tools.Java15PointcutExpressionTest", false);
	            suite.addTestSuite(PointcutExpressionTest.class);
        } else {
            suite.addTest(TestUtil.testNamed("all tests require 1.5"));
        }
        return suite;
    }
    public static void main(String[] args) {
        junit.textui.TestRunner.main(new String[] {Weaver5ModuleTests.class.getName()});
    }

}