aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc1919/AllTestsAspectJ1919.java
blob: da1a81f976a4bc094c1d0ddadc3bbaeaf844344b (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
/*******************************************************************************
 * Copyright (c) 2022 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
 *******************************************************************************/
package org.aspectj.systemtest.ajc1919;

import junit.framework.Test;
import junit.framework.TestSuite;
import org.aspectj.util.LangUtil;

/**
 * @author Alexander Kriegisch
 */
public class AllTestsAspectJ1919 {

	public static Test suite() {
		TestSuite suite = new TestSuite("AspectJ 1.9.19 tests");
		suite.addTest(Bugs1919Tests.suite());
		if (LangUtil.is19VMOrGreater()) {
			suite.addTest(SanityTestsJava19.suite());
			suite.addTest(Ajc1919TestsJava.suite());
		}
		// Do not run tests using a previous compiler's preview features anymore. They would all fail.
		// TODO: Comment out the following block when upgrading JDT Core to Java 20
		if (LangUtil.is19VMOrGreater() && !LangUtil.is20VMOrGreater()) {
			suite.addTest(Java19PreviewFeaturesTests.suite());
		}
		return suite;
	}
}