/******************************************************************************* * Copyright (c) 2000, 2018 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation * Stephan Herrmann - Contributions for * bug 186342 - [compiler][null] Using annotations for null checking * bug 358903 - Filter practically unimportant resource leak warnings * Bug 400874 - [1.8][compiler] Inference infrastructure should evolve to meet JLS8 18.x (Part G of JSR335 spec) * Andy Clement (GoPivotal, Inc) aclement@gopivotal.com - Contributions for * Bug 383624 - [1.8][compiler] Revive code generation support for type annotations (from Olivier's work) * bug 407191 - [1.8] Binary access support for type annotations * Jesper Steen Moeller - Contributions for: * Bug 406973 - [compiler] Parse MethodParameters attribute * Bug 412153 - [1.8][compiler] Check validity of annotations which may be repeatable *******************************************************************************/ package org.eclipse.jdt.core.tests.compiler.regression; import java.util.ArrayList; import junit.framework.Test; import junit.framework.TestSuite; import org.eclipse.jdt.core.tests.dom.StandAloneASTParserTest; import org.eclipse.jdt.core.tests.junit.extension.TestCase; import org.eclipse.jdt.core.tests.util.AbstractCompilerTest; import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.flow.UnconditionalFlowInfo; /** * Run all compiler regression tests */ @SuppressWarnings({ "unchecked", "rawtypes" }) public class TestAll extends junit.framework.TestCase { public TestAll(String testName) { super(testName); } public static Test suite() { // Common test suites ArrayList standardTests = new ArrayList(); standardTests.add(ArrayTest.class); standardTests.add(AssignmentTest.class); standardTests.add(BooleanTest.class); standardTests.add(CastTest.class); standardTests.add(ClassFileComparatorTest.class); standardTests.add(CollisionCase.class); standardTests.add(ConstantTest.class); standardTests.add(DeprecatedTest.class); standardTests.add(LocalVariableTest.class); standardTests.add(LookupTest.class); standardTests.add(NumericTest.class); standardTests.add(ProblemConstructorTest.class); standardTests.add(ProblemTypeAndMethodTest.class); standardTests.add(ScannerTest.class); standardTests.add(SwitchTest.class); standardTests.add(TryStatementTest.class); standardTests.add(UtilTest.class); standardTests.add(XLargeTest.class); standardTests.add(InternalScannerTest.class); standardTests.add(ConditionalExpressionTest.class); standardTests.add(ExternalizeStringLiteralsTest.class); standardTests.add(NonFatalErrorTest.class); standardTests.add(FlowAnalysisTest.class); standardTests.add(CharOperationTest.class); standardTests.add(RuntimeTests.class); standardTests.add(DebugAttributeTest.class); standardTests.add(NullReferenceTest.class); standardTests.add(NullReferenceTestAsserts.class); if (UnconditionalFlowInfo.COVERAGE_TEST_FLAG) { standardTests.add(NullReferenceImplTests.class); } standardTests.add(CompilerInvocationTests.class); standardTests.add(InnerEmulationTest.class); standardTests.add(SuperTypeTest.class); standardTests.add(ForStatementTest.class); standardTests.add(FieldAccessTest.class); standardTests.add(SerialVersionUIDTests.class); standardTests.add(LineNumberAttributeTest.class); standardTests.add(ProgrammingProblemsTest.class); standardTests.add(ManifestAnalyzerTest.class); standardTests.add(InitializationTests.class); standardTests.add(ResourceLeakTests.class); standardTests.add(PackageBindingTest.class); // add all javadoc tests for (int i=0, l=JavadocTest.ALL_CLASSES.size(); i