]> source.dussan.org Git - aspectj.git/commit
Add Java 16 test suite for AspectJ 1.9.7 + test refactorings
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 20 Mar 2021 19:16:20 +0000 (02:16 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 20 Mar 2021 19:16:20 +0000 (02:16 +0700)
commit68ad86eb6ed70c15ad4209295903a9a977b001f6
treee65d53e92cf4136d76337bd5e6f8e55da958fff5
parenta1867b05ba6443d32abc4049c26b92fc226d6f78
Add Java 16 test suite for AspectJ 1.9.7 + test refactorings

- Test all features which were preview in 14+15 and are now final in 16,
  compiling them with language level 16.
- For Java 15 we only have sanity tests (and of course the Java <14
  tests), compiling Java 16 features to target 15 does not seem to work.
- Test remaining Java 16 preview feature (sealed classes).
- Instead of overriding runTest(String) in several base classes like
  XMLBasedAjcTestCaseForJava*Only or XMLBasedAjcTestCaseForJava*OrLater,
  we now override setUp() from JUnit's TestCase base class. This will
  run before runTest(String) and make the tests fail much faster, if a
  user tries to run them on the wrong VM.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
24 files changed:
bcel-builder/src/main/java/org/aspectj/apache/bcel/Constants.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava10OrLater.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava11OrLater.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava12OrLater.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava13OrLater.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava14Only.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava14OrLater.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava15Only.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava15OrLater.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava16Only.java [new file with mode: 0644]
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava16OrLater.java [new file with mode: 0644]
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava9OrLater.java
tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196PreviewFeaturesTests.java [deleted file]
tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196Tests.java
tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc197/Ajc197PreviewFeaturesTests.java [deleted file]
tests/src/test/java/org/aspectj/systemtest/ajc197/Ajc197Tests.java [deleted file]
tests/src/test/java/org/aspectj/systemtest/ajc197/Ajc197TestsJava.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc197/AllTestsAspectJ197.java
tests/src/test/java/org/aspectj/systemtest/ajc197/Java16PreviewFeaturesTests.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc197/SanityTestsJava16.java [new file with mode: 0644]
tests/src/test/resources/org/aspectj/systemtest/ajc197/ajc197.xml
tests/src/test/resources/org/aspectj/systemtest/ajc197/sanity-tests-16.xml [new file with mode: 0644]
util/src/main/java/org/aspectj/util/LangUtil.java