diff options
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java')
-rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java index d20ccdd71c..b87490630b 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/TestAll.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2019 IBM Corporation and others. + * Copyright (c) 2000, 2020 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -252,6 +252,28 @@ public static TestSuite getTestSuite(boolean addComplianceDiagnoseTest) { TestCase.RUN_ONLY_ID = null; all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_14), tests_14)); } + if ((possibleComplianceLevels & AbstractCompilerTest.F_15) != 0) { + ArrayList tests_15 = (ArrayList)testClasses.clone(); + tests_15.addAll(TEST_CLASSES_1_5); + tests_15.add(ParserTest1_7.class); + tests_15.add(LambdaExpressionSyntaxTest.class); + tests_15.add(ReferenceExpressionSyntaxTest.class); + tests_15.add(TypeAnnotationSyntaxTest.class); + tests_15.add(CompletionParserTest18.class); + tests_15.add(SelectionParserTest18.class); + tests_15.add(SelectionParserTest9.class); + tests_15.add(SelectionParserTest10.class); + tests_15.add(SelectionParserTest12.class); + tests_15.add(ModuleDeclarationSyntaxTest.class); + tests_15.add(JEP286ReservedWordTest.class); + // Reset forgotten subsets tests + TestCase.TESTS_PREFIX = null; + TestCase.TESTS_NAMES = null; + TestCase.TESTS_NUMBERS= null; + TestCase.TESTS_RANGE = null; + TestCase.RUN_ONLY_ID = null; + all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_15), tests_15)); + } return all; } public static Test suite() { |