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.

AllTestsAspectJ1921.java 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.ajc1921;
  9. import junit.framework.Test;
  10. import junit.framework.TestSuite;
  11. import org.aspectj.util.LangUtil;
  12. // AspectJ_JDK_Update
  13. // - Copy 'ajc*' package with all classes to a new package, incrementing the version number in the package
  14. // - Rename all classes, incrementing version numbers
  15. // - Add this class to the suite in class AllTests19
  16. // - Increment version numbers in strings, method calls and constants to the appropriate values, creating necessary
  17. // methods and constants classes providing them, if they do not exist yet
  18. // - Also increment references to 'ajc*.xml' and 'sanity-tests-*.xml' test definition, copying the previous
  19. // tests/src/test/resources/org/aspectj/systemtest/ajc* directory, incrementing all names and adjusting the XML
  20. // file contents appropriately
  21. // - Search for other 'AspectJ_JDK_Update' hints in the repository, also performing the necessary to-dos there
  22. // - Remove this comment from the previous class version after copying this one
  23. /**
  24. * @author Alexander Kriegisch
  25. */
  26. public class AllTestsAspectJ1921 {
  27. public static Test suite() {
  28. TestSuite suite = new TestSuite("AspectJ 1.9.21 tests");
  29. suite.addTest(Bugs1921Tests.suite());
  30. if (LangUtil.is21VMOrGreater()) {
  31. suite.addTest(SanityTestsJava21.suite());
  32. suite.addTest(Ajc1921TestsJava.suite());
  33. }
  34. // AspectJ_JDK_Update
  35. // Do not run tests using a previous compiler's preview features anymore. They would all fail.
  36. // TODO: Comment out the following block when upgrading JDT Core to Java 22
  37. if (LangUtil.is21VMOrGreater() && !LangUtil.is22VMOrGreater()) {
  38. suite.addTest(Java21PreviewFeaturesTests.suite());
  39. }
  40. return suite;
  41. }
  42. }