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.

AllTestsAspectJ199.java 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. /*******************************************************************************
  2. * Copyright (c) 2022 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.ajc199;
  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 AllTestsAspectJ199 {
  16. public static Test suite() {
  17. TestSuite suite = new TestSuite("AspectJ 1.9.9 tests");
  18. suite.addTest(Bugs199Tests.suite());
  19. if (LangUtil.is18VMOrGreater()) {
  20. suite.addTest(SanityTestsJava18.suite());
  21. suite.addTest(Ajc199TestsJava.suite());
  22. }
  23. // Do not run tests using a previous compiler's preview features anymore. They would all fail.
  24. /*
  25. if (LangUtil.is18VMOrGreater() && !LangUtil.is19VMOrGreater()) {
  26. suite.addTest(Java18PreviewFeaturesTests.suite());
  27. }
  28. */
  29. return suite;
  30. }
  31. }