aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-17 13:51:59 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-17 14:49:20 +0700
commit173855359653486178e7e0a7d7b8918615e6deee (patch)
treeb8cd77d5b460ebb400effa15cbb9748803abec73 /tests/src/test/java/org/aspectj
parent798ee65035142594c43c8c154baaafd557d5d11e (diff)
downloadaspectj-173855359653486178e7e0a7d7b8918615e6deee.tar.gz
aspectj-173855359653486178e7e0a7d7b8918615e6deee.zip
Restructure Java 14 / AJ 1.9.6 tests
- Java 14 feature sample classes moved from 'bugs' to 'features' - One test case using a Java 14 preview feature was moved to the Java 14-only tests Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org/aspectj')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196PreviewFeaturesTests.java6
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196Tests.java5
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196PreviewFeaturesTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196PreviewFeaturesTests.java
index f9c68131e..56c95a265 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196PreviewFeaturesTests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196PreviewFeaturesTests.java
@@ -7,6 +7,7 @@
*******************************************************************************/
package org.aspectj.systemtest.ajc196;
+import org.aspectj.apache.bcel.Constants;
import org.aspectj.testing.XMLBasedAjcTestCase;
import org.aspectj.testing.XMLBasedAjcTestCaseForJava14Only;
@@ -17,6 +18,11 @@ import junit.framework.Test;
*/
public class Ajc196PreviewFeaturesTests extends XMLBasedAjcTestCaseForJava14Only {
+ public void testRecords() {
+ runTest("simple record");
+ checkVersion("Person", Constants.MAJOR_14, Constants.PREVIEW_MINOR_VERSION);
+ }
+
public void testRecords2() {
runTest("using a record");
}
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196Tests.java
index 7ec224109..7fd25c04b 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196Tests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc196/Ajc196Tests.java
@@ -22,11 +22,6 @@ public class Ajc196Tests extends XMLBasedAjcTestCaseForJava14OrLater {
runTest("early resolution of supporting interfaces");
}
- public void testRecords() {
- runTest("simple record");
- checkVersion("Person", Constants.MAJOR_14, Constants.PREVIEW_MINOR_VERSION);
- }
-
public void testSwitch1() {
runTest("switch 1");
checkVersion("Switch1", Constants.MAJOR_14, 0);