123456789101112131415161718192021222324252627282930313233343536 |
- /*******************************************************************************
- * Copyright (c) 2021 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.ajc197;
-
- import junit.framework.Test;
- import junit.framework.TestSuite;
- import org.aspectj.util.LangUtil;
-
- /**
- * @author Alexander Kriegisch
- */
- public class AllTestsAspectJ197 {
-
- public static Test suite() {
- TestSuite suite = new TestSuite("AspectJ 1.9.7 tests");
- if (LangUtil.isVMGreaterOrEqual(15)) {
- suite.addTest(SanityTestsJava15.suite());
- }
- if (LangUtil.isVMGreaterOrEqual(16)) {
- suite.addTest(SanityTestsJava16.suite());
- suite.addTest(Ajc197TestsJava.suite());
- }
- // Do not run tests using a previous compiler's preview features anymore. They would all fail.
- /*
- if (LangUtil.isVMGreaterOrEqual(16) && !LangUtil.isVMGreaterOrEqual(17)) {
- suite.addTest(Java16PreviewFeaturesTests.suite());
- }
- */
- return suite;
- }
- }
|