You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AllTestsAspectJ198.java 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. /*******************************************************************************
  2. * Copyright (c) 2021 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v 2.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  7. *******************************************************************************/
  8. package org.aspectj.systemtest.ajc198;
  9. import junit.framework.Test;
  10. import junit.framework.TestSuite;
  11. import org.aspectj.util.LangUtil;
  12. /**
  13. * @author Alexander Kriegisch
  14. */
  15. public class AllTestsAspectJ198 {
  16. public static Test suite() {
  17. TestSuite suite = new TestSuite("AspectJ 1.9.8 tests");
  18. if (LangUtil.is9VMOrGreater()) {
  19. suite.addTest(org.aspectj.systemtest.ajc198.CompileWithReleaseTests.suite());
  20. }
  21. if (LangUtil.is17VMOrGreater()) {
  22. suite.addTest(SanityTestsJava17.suite());
  23. suite.addTest(Ajc198TestsJava.suite());
  24. }
  25. if (LangUtil.is17VMOrGreater() && !LangUtil.is18VMOrGreater()) {
  26. suite.addTest(Java17PreviewFeaturesTests.suite());
  27. }
  28. return suite;
  29. }
  30. }