mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Bug 569839: Ensure that behaviour is same running tests without suites
This change renames all suites to be called ...TestSuite so that the default includes don't pick them up. With the name ...Tests it means that those tests referenced by the suite are run multiple times. Tests which relied on being run as part of a TestSuite have been refactored to run as individual tests by moving the logic from the suite into the test (e.g. CommentHandlingTestSuite) Tests that were not runnable have been renamed from ...Test to ...Tester to match a convention already used in CDT. Lots of tests did not use standard name (i.e. didn't end in no Test) so this was fixed. Many tests were really abstract tests, so the missing abstract was added, e.g. ArrayTests The default excludes in Maven behaviour differently than may be expected, so rather than remove static inner test classes, update the excludes, see pom.xml change Change-Id: Ia91e12fe76c3ec2d914463a28400d21b9daf1910
This commit is contained in:
parent
7b6701f9ef
commit
25cbbcd5b5
119 changed files with 783 additions and 652 deletions
|
@ -16,10 +16,14 @@ package org.eclipse.cdt.core.internal.errorparsers.tests;
|
|||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ErrorParserTests {
|
||||
/**
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class ErrorParserTestSuite {
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(ErrorParserTests.class.getName());
|
||||
TestSuite suite = new TestSuite(ErrorParserTestSuite.class.getName());
|
||||
|
||||
// Just add more test cases here as you create them for
|
||||
// each class being tested
|
|
@ -29,7 +29,7 @@ import junit.framework.TestSuite;
|
|||
*
|
||||
* @author Simeon Andreev
|
||||
*/
|
||||
public class TestScopeOfBuildConfigResourceChangesPreference extends TestCase {
|
||||
public class ScopeOfBuildConfigResourceChangesPreferenceTests extends TestCase {
|
||||
|
||||
private static final String PREFERENCE_NAME = CCorePreferenceConstants.PREF_BUILD_CONFIGS_RESOURCE_CHANGES;
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class TestScopeOfBuildConfigResourceChangesPreference extends TestCase {
|
|||
private boolean oldDefaultScopeValue;
|
||||
|
||||
public static Test suite() {
|
||||
return new TestSuite(TestScopeOfBuildConfigResourceChangesPreference.class);
|
||||
return new TestSuite(ScopeOfBuildConfigResourceChangesPreferenceTests.class);
|
||||
}
|
||||
|
||||
@Override
|
|
@ -30,7 +30,7 @@ public class WinRegTests extends TestCase {
|
|||
assertEquals("C:\\Program Files", value);
|
||||
} else {
|
||||
// Should be null on non-Windows platforms
|
||||
assertNotNull(registry);
|
||||
assertNull(registry);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ public class WinRegTests extends TestCase {
|
|||
assertNull(value);
|
||||
} else {
|
||||
// Should be null on non-Windows platforms
|
||||
assertNotNull(registry);
|
||||
assertNull(registry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,11 +18,12 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author crecoskie
|
||||
*
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
public class AllLanguageTests extends TestSuite {
|
||||
@Deprecated
|
||||
public class AllLanguageTestSuite extends TestSuite {
|
||||
public static Test suite() {
|
||||
TestSuite suite = new AllLanguageTests();
|
||||
TestSuite suite = new AllLanguageTestSuite();
|
||||
|
||||
suite.addTest(LanguageInheritanceTests.suite());
|
||||
|
|
@ -18,14 +18,16 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* Test suite to cover core Language Settings Providers functionality.
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
public class AllLanguageSettingsProvidersCoreTests {
|
||||
@Deprecated
|
||||
public class AllLanguageSettingsProvidersCoreTestSuite {
|
||||
public static void main(String[] args) {
|
||||
junit.textui.TestRunner.run(suite());
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(AllLanguageSettingsProvidersCoreTests.class.getName());
|
||||
TestSuite suite = new TestSuite(AllLanguageSettingsProvidersCoreTestSuite.class.getName());
|
||||
|
||||
suite.addTest(LanguageSettingsExtensionsTests.suite());
|
||||
suite.addTest(LanguageSettingsManagerTests.suite());
|
|
@ -14,8 +14,8 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core.model.tests;
|
||||
|
||||
import org.eclipse.cdt.core.language.settings.providers.AllLanguageSettingsProvidersCoreTests;
|
||||
import org.eclipse.cdt.core.settings.model.AllCProjectDescriptionTests;
|
||||
import org.eclipse.cdt.core.language.settings.providers.AllLanguageSettingsProvidersCoreTestSuite;
|
||||
import org.eclipse.cdt.core.settings.model.AllCProjectDescriptionTestSuite;
|
||||
import org.eclipse.cdt.core.settings.model.PathSettingsContainerTests;
|
||||
|
||||
import junit.framework.Test;
|
||||
|
@ -29,19 +29,21 @@ import junit.framework.TestSuite;
|
|||
*
|
||||
* @author Judy N. Green
|
||||
* @since Jul 19, 2002
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
public class AllCoreTests {
|
||||
@Deprecated
|
||||
public class AllCoreTestSuite {
|
||||
|
||||
public static void main(String[] args) {
|
||||
junit.textui.TestRunner.run(suite());
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(AllCoreTests.class.getName());
|
||||
TestSuite suite = new TestSuite(AllCoreTestSuite.class.getName());
|
||||
|
||||
// Just add more test cases here as you create them for
|
||||
// each class being tested
|
||||
suite.addTest(AllLanguageInterfaceTests.suite());
|
||||
suite.addTest(AllLanguageInterfaceTestSuite.suite());
|
||||
suite.addTest(CModelTests.suite());
|
||||
suite.addTest(CModelElementsTests.suite());
|
||||
suite.addTest(CModelIdentifierTests.suite());
|
||||
|
@ -57,14 +59,14 @@ public class AllCoreTests {
|
|||
suite.addTest(CPathEntryTest.suite());
|
||||
//the CProjectDescriptionTests now groups all New Project Model related tests
|
||||
//which includes the CConfigurationDescriptionReferenceTests
|
||||
suite.addTest(AllCProjectDescriptionTests.suite());
|
||||
suite.addTest(AllCProjectDescriptionTestSuite.suite());
|
||||
suite.addTest(PathSettingsContainerTests.suite());
|
||||
suite.addTest(ASTCacheTests.suite());
|
||||
suite.addTest(AsmModelBuilderTest.suite());
|
||||
suite.addTest(CModelBuilderBugsTest.suite());
|
||||
suite.addTest(Bug311189.suite());
|
||||
suite.addTest(Bug311189Tests.suite());
|
||||
|
||||
suite.addTest(AllLanguageSettingsProvidersCoreTests.suite());
|
||||
suite.addTest(AllLanguageSettingsProvidersCoreTestSuite.suite());
|
||||
return suite;
|
||||
|
||||
}
|
|
@ -26,14 +26,16 @@ import junit.framework.TestSuite;
|
|||
* to be tested.
|
||||
* @author bnicolle
|
||||
*
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
public class AllLanguageInterfaceTests {
|
||||
@Deprecated
|
||||
public class AllLanguageInterfaceTestSuite {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(AllLanguageInterfaceTests.class.getName());
|
||||
TestSuite suite = new TestSuite(AllLanguageInterfaceTestSuite.class.getName());
|
||||
|
||||
// Just add more test cases here as you create them for
|
||||
// each class being tested
|
|
@ -39,10 +39,10 @@ import junit.framework.Test;
|
|||
* we must ensure that we don't corrupt the set of includes in the incoming
|
||||
* project's metadata
|
||||
*/
|
||||
public class Bug311189 extends BaseTestCase {
|
||||
public class Bug311189Tests extends BaseTestCase {
|
||||
|
||||
public static Test suite() {
|
||||
return suite(Bug311189.class, "_");
|
||||
return suite(Bug311189Tests.class, "_");
|
||||
}
|
||||
|
||||
private IProject project;
|
|
@ -16,18 +16,22 @@ package org.eclipse.cdt.core.settings.model;
|
|||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class AllCProjectDescriptionTests {
|
||||
/**
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class AllCProjectDescriptionTestSuite {
|
||||
public static void main(String[] args) {
|
||||
junit.textui.TestRunner.run(suite());
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(AllCProjectDescriptionTests.class.getName());
|
||||
TestSuite suite = new TestSuite(AllCProjectDescriptionTestSuite.class.getName());
|
||||
|
||||
// Just add more test cases here as you create them for
|
||||
// each class being tested
|
||||
suite.addTest(CConfigurationDescriptionReferenceTests.suite());
|
||||
suite.addTest(CConfigurationDescriptionExportSettings.suite());
|
||||
suite.addTest(CConfigurationDescriptionExportSettingsTests.suite());
|
||||
suite.addTest(ExternalSettingsProviderTests.suite());
|
||||
suite.addTest(CfgSettingsTests.suite());
|
||||
suite.addTest(CProjectDescriptionDeltaTests.suite());
|
|
@ -40,12 +40,12 @@ import junit.framework.TestSuite;
|
|||
* This functionality is provided by the CfgExportSettingContainerFactory which plugins
|
||||
* into the CExternalSettingsManager
|
||||
*/
|
||||
public class CConfigurationDescriptionExportSettings extends BaseTestCase {
|
||||
public class CConfigurationDescriptionExportSettingsTests extends BaseTestCase {
|
||||
|
||||
CoreModel coreModel = CoreModel.getDefault();
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(CConfigurationDescriptionExportSettings.class, "_");
|
||||
return suite(CConfigurationDescriptionExportSettingsTests.class, "_");
|
||||
}
|
||||
|
||||
// Setting entries 1
|
|
@ -27,7 +27,9 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* Combines all tests for the parsers.
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class ParserTestSuite extends TestCase {
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(ParserTestSuite.class.getName());
|
||||
|
|
|
@ -38,7 +38,7 @@ import junit.framework.TestCase;
|
|||
/**
|
||||
* @author dsteffle
|
||||
*/
|
||||
public class AST2FileBasePluginTestCase extends TestCase {
|
||||
public abstract class AST2FileBasePluginTestCase extends TestCase {
|
||||
static NullProgressMonitor monitor;
|
||||
static IWorkspace workspace;
|
||||
static IProject project;
|
||||
|
|
|
@ -19,8 +19,9 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author jcamelon
|
||||
*
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class DOMGCCParserExtensionTestSuite extends TestCase {
|
||||
|
||||
public static Test suite() {
|
||||
|
|
|
@ -31,7 +31,9 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author jcamelon
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class DOMParserTestSuite extends TestCase {
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(DOMParserTestSuite.class.getName());
|
||||
|
|
|
@ -0,0 +1,76 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2016 Institute for Software, HSR Hochschule fuer Technik
|
||||
* Rapperswil, University of applied sciences 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
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class AllConstexprEvalTestSuite {
|
||||
public static Test suite() throws Exception {
|
||||
final TestSuite suite = new TestSuite();
|
||||
suite.addTest(ConstructorTests.NonIndexingTests.suite());
|
||||
suite.addTest(ConstructorTests.SingleProjectTests.suite());
|
||||
suite.addTest(MemberFunctionTests.NonIndexingTests.suite());
|
||||
suite.addTest(MemberFunctionTests.SingleProjectTests.suite());
|
||||
suite.addTest(MemberVariableTests.NonIndexingTests.suite());
|
||||
suite.addTest(MemberVariableTests.SingleProjectTests.suite());
|
||||
suite.addTest(FunctionTests.NonIndexingTests.suite());
|
||||
suite.addTest(FunctionTests.SingleProjectTests.suite());
|
||||
suite.addTest(FunctionTemplateTests.NonIndexingTests.suite());
|
||||
suite.addTest(FunctionTemplateTests.SingleProjectTests.suite());
|
||||
suite.addTest(ClassTemplateTests.NonIndexingTests.suite());
|
||||
suite.addTest(ClassTemplateTests.SingleProjectTests.suite());
|
||||
suite.addTest(IfStatementTests.NonIndexingTests.suite());
|
||||
suite.addTest(IfStatementTests.SingleProjectTests.suite());
|
||||
suite.addTest(SwitchStatementTests.NonIndexingTests.suite());
|
||||
suite.addTest(SwitchStatementTests.SingleProjectTests.suite());
|
||||
suite.addTest(WhileStatementTests.NonIndexingTests.suite());
|
||||
suite.addTest(WhileStatementTests.SingleProjectTests.suite());
|
||||
suite.addTest(DoWhileStatementTests.NonIndexingTests.suite());
|
||||
suite.addTest(DoWhileStatementTests.SingleProjectTests.suite());
|
||||
suite.addTest(ForStatementTests.NonIndexingTests.suite());
|
||||
suite.addTest(ForStatementTests.SingleProjectTests.suite());
|
||||
suite.addTest(RangeBasedForStatementTests.NonIndexingTests.suite());
|
||||
suite.addTest(RangeBasedForStatementTests.SingleProjectTests.suite());
|
||||
suite.addTest(BinaryOperatorOverloadingTests.NonIndexingTests.suite());
|
||||
suite.addTest(BinaryOperatorOverloadingTests.SingleProjectTests.suite());
|
||||
suite.addTest(UnaryOperatorOverloadingTests.NonIndexingTests.suite());
|
||||
suite.addTest(UnaryOperatorOverloadingTests.SingleProjectTests.suite());
|
||||
suite.addTest(ArrayTests.NonIndexingTests.suite());
|
||||
suite.addTest(ArrayTests.SingleProjectTests.suite());
|
||||
suite.addTest(BinaryExpressionTests.NonIndexingTests.suite());
|
||||
suite.addTest(BinaryExpressionTests.SingleProjectTests.suite());
|
||||
suite.addTest(UnaryExpressionTests.NonIndexingTests.suite());
|
||||
suite.addTest(UnaryExpressionTests.SingleProjectTests.suite());
|
||||
suite.addTest(ReferenceTests.NonIndexingTests.suite());
|
||||
suite.addTest(ReferenceTests.SingleProjectTests.suite());
|
||||
suite.addTest(TypeAliasTests.NonIndexingTests.suite());
|
||||
suite.addTest(TypeAliasTests.SingleProjectTests.suite());
|
||||
suite.addTest(PointerTests.NonIndexingTests.suite());
|
||||
suite.addTest(PointerTests.SingleProjectTests.suite());
|
||||
suite.addTest(UserDefinedLiteralTests.NonIndexingTests.suite());
|
||||
suite.addTest(UserDefinedLiteralTests.SingleProjectTests.suite());
|
||||
suite.addTest(IntegralValueTests.NonIndexingTests.suite());
|
||||
suite.addTest(IntegralValueTests.SingleProjectTests.suite());
|
||||
suite.addTest(FloatingPointValueTests.NonIndexingTests.suite());
|
||||
suite.addTest(FloatingPointValueTests.SingleProjectTests.suite());
|
||||
suite.addTest(CStringValueTests.NonIndexingTests.suite());
|
||||
suite.addTest(CStringValueTests.SingleProjectTests.suite());
|
||||
suite.addTest(StructuredBindingTests.NonIndexingTests.suite());
|
||||
suite.addTest(StructuredBindingTests.SingleProjectTests.suite());
|
||||
return suite;
|
||||
}
|
||||
}
|
|
@ -1,72 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2016 Institute for Software, HSR Hochschule fuer Technik
|
||||
* Rapperswil, University of applied sciences 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
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class AllConstexprEvalTests {
|
||||
public static Test suite() throws Exception {
|
||||
final TestSuite suite = new TestSuite();
|
||||
suite.addTest(ConstructorTests.NonIndexing.suite());
|
||||
suite.addTest(ConstructorTests.SingleProject.suite());
|
||||
suite.addTest(MemberFunctionTests.NonIndexing.suite());
|
||||
suite.addTest(MemberFunctionTests.SingleProject.suite());
|
||||
suite.addTest(MemberVariableTests.NonIndexing.suite());
|
||||
suite.addTest(MemberVariableTests.SingleProject.suite());
|
||||
suite.addTest(FunctionTests.NonIndexing.suite());
|
||||
suite.addTest(FunctionTests.SingleProject.suite());
|
||||
suite.addTest(FunctionTemplateTests.NonIndexing.suite());
|
||||
suite.addTest(FunctionTemplateTests.SingleProject.suite());
|
||||
suite.addTest(ClassTemplateTests.NonIndexing.suite());
|
||||
suite.addTest(ClassTemplateTests.SingleProject.suite());
|
||||
suite.addTest(IfStatementTests.NonIndexing.suite());
|
||||
suite.addTest(IfStatementTests.SingleProject.suite());
|
||||
suite.addTest(SwitchStatementTests.NonIndexing.suite());
|
||||
suite.addTest(SwitchStatementTests.SingleProject.suite());
|
||||
suite.addTest(WhileStatementTests.NonIndexing.suite());
|
||||
suite.addTest(WhileStatementTests.SingleProject.suite());
|
||||
suite.addTest(DoWhileStatementTests.NonIndexing.suite());
|
||||
suite.addTest(DoWhileStatementTests.SingleProject.suite());
|
||||
suite.addTest(ForStatementTests.NonIndexing.suite());
|
||||
suite.addTest(ForStatementTests.SingleProject.suite());
|
||||
suite.addTest(RangeBasedForStatementTests.NonIndexing.suite());
|
||||
suite.addTest(RangeBasedForStatementTests.SingleProject.suite());
|
||||
suite.addTest(BinaryOperatorOverloadingTests.NonIndexing.suite());
|
||||
suite.addTest(BinaryOperatorOverloadingTests.SingleProject.suite());
|
||||
suite.addTest(UnaryOperatorOverloadingTests.NonIndexing.suite());
|
||||
suite.addTest(UnaryOperatorOverloadingTests.SingleProject.suite());
|
||||
suite.addTest(ArrayTests.NonIndexing.suite());
|
||||
suite.addTest(ArrayTests.SingleProject.suite());
|
||||
suite.addTest(BinaryExpressionTests.NonIndexing.suite());
|
||||
suite.addTest(BinaryExpressionTests.SingleProject.suite());
|
||||
suite.addTest(UnaryExpressionTests.NonIndexing.suite());
|
||||
suite.addTest(UnaryExpressionTests.SingleProject.suite());
|
||||
suite.addTest(ReferenceTests.NonIndexing.suite());
|
||||
suite.addTest(ReferenceTests.SingleProject.suite());
|
||||
suite.addTest(TypeAliasTests.NonIndexing.suite());
|
||||
suite.addTest(TypeAliasTests.SingleProject.suite());
|
||||
suite.addTest(PointerTests.NonIndexing.suite());
|
||||
suite.addTest(PointerTests.SingleProject.suite());
|
||||
suite.addTest(UserDefinedLiteralTests.NonIndexing.suite());
|
||||
suite.addTest(UserDefinedLiteralTests.SingleProject.suite());
|
||||
suite.addTest(IntegralValueTests.NonIndexing.suite());
|
||||
suite.addTest(IntegralValueTests.SingleProject.suite());
|
||||
suite.addTest(FloatingPointValueTests.NonIndexing.suite());
|
||||
suite.addTest(FloatingPointValueTests.SingleProject.suite());
|
||||
suite.addTest(CStringValueTests.NonIndexing.suite());
|
||||
suite.addTest(CStringValueTests.SingleProject.suite());
|
||||
suite.addTest(StructuredBindingTests.NonIndexing.suite());
|
||||
suite.addTest(StructuredBindingTests.SingleProject.suite());
|
||||
return suite;
|
||||
}
|
||||
}
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ArrayTests extends TestBase {
|
||||
public static class NonIndexing extends ArrayTests {
|
||||
public NonIndexing() {
|
||||
public abstract class ArrayTests extends TestBase {
|
||||
public static class NonIndexingTests extends ArrayTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends ArrayTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends ArrayTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class BinaryExpressionTests extends TestBase {
|
||||
public static class NonIndexing extends BinaryExpressionTests {
|
||||
public NonIndexing() {
|
||||
public abstract class BinaryExpressionTests extends TestBase {
|
||||
public static class NonIndexingTests extends BinaryExpressionTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends BinaryExpressionTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends BinaryExpressionTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class BinaryOperatorOverloadingTests extends TestBase {
|
||||
public static class NonIndexing extends BinaryOperatorOverloadingTests {
|
||||
public NonIndexing() {
|
||||
public abstract class BinaryOperatorOverloadingTests extends TestBase {
|
||||
public static class NonIndexingTests extends BinaryOperatorOverloadingTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends BinaryOperatorOverloadingTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends BinaryOperatorOverloadingTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class CStringValueTests extends TestBase {
|
||||
public static class NonIndexing extends CStringValueTests {
|
||||
public NonIndexing() {
|
||||
public abstract class CStringValueTests extends TestBase {
|
||||
public static class NonIndexingTests extends CStringValueTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends CStringValueTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends CStringValueTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ClassTemplateTests extends TestBase {
|
||||
public static class NonIndexing extends ClassTemplateTests {
|
||||
public NonIndexing() {
|
||||
public abstract class ClassTemplateTests extends TestBase {
|
||||
public static class NonIndexingTests extends ClassTemplateTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends ClassTemplateTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends ClassTemplateTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ConstructorTests extends TestBase {
|
||||
public static class NonIndexing extends ConstructorTests {
|
||||
public NonIndexing() {
|
||||
public abstract class ConstructorTests extends TestBase {
|
||||
public static class NonIndexingTests extends ConstructorTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends ConstructorTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends ConstructorTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ public class ConstructorTests extends TestBase {
|
|||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
|
||||
// struct S {
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class DoWhileStatementTests extends TestBase {
|
||||
public static class NonIndexing extends DoWhileStatementTests {
|
||||
public NonIndexing() {
|
||||
public abstract class DoWhileStatementTests extends TestBase {
|
||||
public static class NonIndexingTests extends DoWhileStatementTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends DoWhileStatementTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends DoWhileStatementTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class FloatingPointValueTests extends TestBase {
|
||||
public static class NonIndexing extends FloatingPointValueTests {
|
||||
public NonIndexing() {
|
||||
public abstract class FloatingPointValueTests extends TestBase {
|
||||
public static class NonIndexingTests extends FloatingPointValueTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends FloatingPointValueTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends FloatingPointValueTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ForStatementTests extends TestBase {
|
||||
public static class NonIndexing extends ForStatementTests {
|
||||
public NonIndexing() {
|
||||
public abstract class ForStatementTests extends TestBase {
|
||||
public static class NonIndexingTests extends ForStatementTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends ForStatementTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends ForStatementTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class FunctionTemplateTests extends TestBase {
|
||||
public static class NonIndexing extends FunctionTemplateTests {
|
||||
public NonIndexing() {
|
||||
public abstract class FunctionTemplateTests extends TestBase {
|
||||
public static class NonIndexingTests extends FunctionTemplateTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends FunctionTemplateTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends FunctionTemplateTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,24 +20,24 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPExecution;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class FunctionTests extends TestBase {
|
||||
public static class NonIndexing extends FunctionTests {
|
||||
public NonIndexing() {
|
||||
public abstract class FunctionTests extends TestBase {
|
||||
public static class NonIndexingTests extends FunctionTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends FunctionTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends FunctionTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class IfStatementTests extends TestBase {
|
||||
public static class NonIndexing extends IfStatementTests {
|
||||
public NonIndexing() {
|
||||
public abstract class IfStatementTests extends TestBase {
|
||||
public static class NonIndexingTests extends IfStatementTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends IfStatementTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends IfStatementTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class IntegralValueTests extends TestBase {
|
||||
public static class NonIndexing extends IntegralValueTests {
|
||||
public NonIndexing() {
|
||||
public abstract class IntegralValueTests extends TestBase {
|
||||
public static class NonIndexingTests extends IntegralValueTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends IntegralValueTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends IntegralValueTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class MemberFunctionTests extends TestBase {
|
||||
public static class NonIndexing extends MemberFunctionTests {
|
||||
public NonIndexing() {
|
||||
public abstract class MemberFunctionTests extends TestBase {
|
||||
public static class NonIndexingTests extends MemberFunctionTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends MemberFunctionTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends MemberFunctionTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class MemberVariableTests extends TestBase {
|
||||
public static class NonIndexing extends MemberVariableTests {
|
||||
public NonIndexing() {
|
||||
public abstract class MemberVariableTests extends TestBase {
|
||||
public static class NonIndexingTests extends MemberVariableTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends MemberVariableTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends MemberVariableTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class PointerTests extends TestBase {
|
||||
public static class NonIndexing extends PointerTests {
|
||||
public NonIndexing() {
|
||||
public abstract class PointerTests extends TestBase {
|
||||
public static class NonIndexingTests extends PointerTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends PointerTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends PointerTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class RangeBasedForStatementTests extends TestBase {
|
||||
public static class NonIndexing extends RangeBasedForStatementTests {
|
||||
public NonIndexing() {
|
||||
public abstract class RangeBasedForStatementTests extends TestBase {
|
||||
public static class NonIndexingTests extends RangeBasedForStatementTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends RangeBasedForStatementTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends RangeBasedForStatementTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class ReferenceTests extends TestBase {
|
||||
public static class NonIndexing extends ReferenceTests {
|
||||
public NonIndexing() {
|
||||
public abstract class ReferenceTests extends TestBase {
|
||||
public static class NonIndexingTests extends ReferenceTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends ReferenceTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends ReferenceTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class StructuredBindingTests extends TestBase {
|
||||
public static class NonIndexing extends StructuredBindingTests {
|
||||
public NonIndexing() {
|
||||
public abstract class StructuredBindingTests extends TestBase {
|
||||
public static class NonIndexingTests extends StructuredBindingTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends StructuredBindingTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends StructuredBindingTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class SwitchStatementTests extends TestBase {
|
||||
public static class NonIndexing extends SwitchStatementTests {
|
||||
public NonIndexing() {
|
||||
public abstract class SwitchStatementTests extends TestBase {
|
||||
public static class NonIndexingTests extends SwitchStatementTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends SwitchStatementTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends SwitchStatementTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class TypeAliasTests extends TestBase {
|
||||
public static class NonIndexing extends TypeAliasTests {
|
||||
public NonIndexing() {
|
||||
public abstract class TypeAliasTests extends TestBase {
|
||||
public static class NonIndexingTests extends TypeAliasTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends TypeAliasTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends TypeAliasTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class UnaryExpressionTests extends TestBase {
|
||||
public static class NonIndexing extends UnaryExpressionTests {
|
||||
public NonIndexing() {
|
||||
public abstract class UnaryExpressionTests extends TestBase {
|
||||
public static class NonIndexingTests extends UnaryExpressionTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends UnaryExpressionTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends UnaryExpressionTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,24 +13,24 @@ package org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class UnaryOperatorOverloadingTests extends TestBase {
|
||||
public static class NonIndexing extends UnaryOperatorOverloadingTests {
|
||||
public NonIndexing() {
|
||||
public abstract class UnaryOperatorOverloadingTests extends TestBase {
|
||||
public static class NonIndexingTests extends UnaryOperatorOverloadingTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends UnaryOperatorOverloadingTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends UnaryOperatorOverloadingTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class UserDefinedLiteralTests extends TestBase {
|
||||
public static class NonIndexing extends UserDefinedLiteralTests {
|
||||
public NonIndexing() {
|
||||
public abstract class UserDefinedLiteralTests extends TestBase {
|
||||
public static class NonIndexingTests extends UserDefinedLiteralTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends UserDefinedLiteralTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends UserDefinedLiteralTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,24 +15,24 @@ import org.eclipse.cdt.internal.core.dom.parser.IntegralValue;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class WhileStatementTests extends TestBase {
|
||||
public static class NonIndexing extends WhileStatementTests {
|
||||
public NonIndexing() {
|
||||
public abstract class WhileStatementTests extends TestBase {
|
||||
public static class NonIndexingTests extends WhileStatementTests {
|
||||
public NonIndexingTests() {
|
||||
setStrategy(new NonIndexingTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(NonIndexing.class);
|
||||
return suite(NonIndexingTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends WhileStatementTests {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTests extends WhileStatementTests {
|
||||
public SingleProjectTests() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true, false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTests.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@ import junit.framework.Test;
|
|||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class CompletionTestSuite extends TestCase {
|
||||
|
||||
public static Test suite() {
|
||||
|
|
|
@ -21,10 +21,14 @@ import org.eclipse.cdt.core.parser.tests.rewrite.comenthandler.CommentHandlingTe
|
|||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class RewriteTests extends TestSuite {
|
||||
/**
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class RewriteTestSuite extends TestSuite {
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
TestSuite suite = new TestSuite(RewriteTests.class.getName());
|
||||
TestSuite suite = new TestSuite(RewriteTestSuite.class.getName());
|
||||
suite.addTest(AstWriterTestSuite.suite());
|
||||
suite.addTest(CommentHandlingTestSuite.suite());
|
||||
suite.addTest(ChangeGeneratorTestSuite.suite());
|
|
@ -46,12 +46,12 @@ import org.eclipse.core.resources.IFile;
|
|||
/**
|
||||
* @author Guido Zgraggen
|
||||
*/
|
||||
public class ASTWriterTest extends RewriteBaseTest {
|
||||
public class ASTWriterTester extends RewriteBaseTest {
|
||||
private static final IParserLogService NULL_LOG = new NullLogService();
|
||||
|
||||
private IFile file;
|
||||
|
||||
public ASTWriterTest(String name, ASTWriterTestSourceFile file) {
|
||||
public ASTWriterTester(String name, ASTWriterTestSourceFile file) {
|
||||
super(name);
|
||||
fileMap.put(file.getName(), file);
|
||||
}
|
|
@ -20,49 +20,14 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author Emanuel Graf
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class AstWriterTestSuite {
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
TestSuite suite = new TestSuite("AstWriterTests");
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("ExpressionTests", "resources/rewrite/ASTWriterExpressionTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("DelcSpecifierTests", "resources/rewrite/ASTWriterDeclSpecTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTester.suite("Commented DelcSpecifierTests",
|
||||
"resources/rewrite/ASTWriterCommentedDeclSpecTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("DeclaratorTests", "resources/rewrite/ASTWriterDeclaratorTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTester.suite("Commented DeclaratorTests",
|
||||
"resources/rewrite/ASTWriterCommentedDeclaratorTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("StatementsTests", "resources/rewrite/ASTWriterStatementTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTester.suite("Commented StatementsTests",
|
||||
"resources/rewrite/ASTWriterCommentedStatementTestSource.awts"));
|
||||
|
||||
suite.addTest(SourceRewriteTester.suite("NameTests", "resources/rewrite/ASTWriterNameTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTester.suite("Commented NameTests",
|
||||
"resources/rewrite/ASTWriterCommentedNameTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("InitializerTests", "resources/rewrite/ASTWriterInitializerTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("DeclarationTests", "resources/rewrite/ASTWriterDeclarationTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTester.suite("Commented DeclarationTests",
|
||||
"resources/rewrite/ASTWriterCommentedDeclarationTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("TemplatesTests", "resources/rewrite/ASTWriterTemplateTestSource.awts"));
|
||||
|
||||
suite.addTest(SourceRewriteTester.suite("CommentTests", "resources/rewrite/ASTWriterCommentedTestSource.awts"));
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("NewCommentTests", "resources/rewrite/ASTWriterCommentedTestSource2.awts"));
|
||||
suite.addTest(
|
||||
SourceRewriteTester.suite("AttributeTests", "resources/rewrite/ASTWriterAttributeTestSource.awts"));
|
||||
TestSuite suite = new TestSuite("AstWriterTestSuite");
|
||||
suite.addTest(SourceRewriteTest.suite());
|
||||
suite.addTestSuite(ExpressionWriterTest.class);
|
||||
return suite;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.osgi.framework.Bundle;
|
|||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class SourceRewriteTester extends TestSuite {
|
||||
public class SourceRewriteTest extends TestSuite {
|
||||
private static final String testRegexp = "//!(.*)\\s*(\\w*)*$"; //$NON-NLS-1$
|
||||
private static final String codeTypeRegexp = "//%(C|CPP)( GNU)?$"; //$NON-NLS-1$
|
||||
private static final String resultRegexp = "//=.*$"; //$NON-NLS-1$
|
||||
|
@ -48,6 +48,48 @@ public class SourceRewriteTester extends TestSuite {
|
|||
return new BufferedReader(new FileReader(file));
|
||||
}
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
TestSuite suite = new TestSuite("AstWriterTests");
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("ExpressionTests", "resources/rewrite/ASTWriterExpressionTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("DelcSpecifierTests", "resources/rewrite/ASTWriterDeclSpecTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTest.suite("Commented DelcSpecifierTests",
|
||||
"resources/rewrite/ASTWriterCommentedDeclSpecTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("DeclaratorTests", "resources/rewrite/ASTWriterDeclaratorTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTest.suite("Commented DeclaratorTests",
|
||||
"resources/rewrite/ASTWriterCommentedDeclaratorTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("StatementsTests", "resources/rewrite/ASTWriterStatementTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTest.suite("Commented StatementsTests",
|
||||
"resources/rewrite/ASTWriterCommentedStatementTestSource.awts"));
|
||||
|
||||
suite.addTest(SourceRewriteTest.suite("NameTests", "resources/rewrite/ASTWriterNameTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTest.suite("Commented NameTests",
|
||||
"resources/rewrite/ASTWriterCommentedNameTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("InitializerTests", "resources/rewrite/ASTWriterInitializerTestSource.awts"));
|
||||
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("DeclarationTests", "resources/rewrite/ASTWriterDeclarationTestSource.awts"));
|
||||
suite.addTest(SourceRewriteTest.suite("Commented DeclarationTests",
|
||||
"resources/rewrite/ASTWriterCommentedDeclarationTestSource.awts"));
|
||||
|
||||
suite.addTest(SourceRewriteTest.suite("TemplatesTests", "resources/rewrite/ASTWriterTemplateTestSource.awts"));
|
||||
|
||||
suite.addTest(SourceRewriteTest.suite("CommentTests", "resources/rewrite/ASTWriterCommentedTestSource.awts"));
|
||||
suite.addTest(
|
||||
SourceRewriteTest.suite("NewCommentTests", "resources/rewrite/ASTWriterCommentedTestSource2.awts"));
|
||||
suite.addTest(SourceRewriteTest.suite("AttributeTests", "resources/rewrite/ASTWriterAttributeTestSource.awts"));
|
||||
suite.addTestSuite(ExpressionWriterTest.class);
|
||||
return suite;
|
||||
}
|
||||
|
||||
public static Test suite(String name, String file) throws Exception {
|
||||
BufferedReader in = createReader(file);
|
||||
ArrayList<RewriteBaseTest> testCases = createTests(in);
|
||||
|
@ -157,7 +199,7 @@ public class SourceRewriteTester extends TestSuite {
|
|||
}
|
||||
|
||||
private static RewriteBaseTest createTestClass(String testName, ASTWriterTestSourceFile file) throws Exception {
|
||||
ASTWriterTest test = new ASTWriterTest(testName, file);
|
||||
ASTWriterTester test = new ASTWriterTester(testName, file);
|
||||
TextSelection sel = file.getSelection();
|
||||
if (sel != null) {
|
||||
test.setFileWithSelection(file.getName());
|
|
@ -19,7 +19,9 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author Thomas Corbat
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class ChangeGeneratorTestSuite {
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
|
|
|
@ -29,12 +29,16 @@ import org.eclipse.cdt.core.dom.ast.IASTNode;
|
|||
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
|
||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.RewriteBaseTest;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.RewriteTester;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.TestSourceFile;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.commenthandler.ASTCommenter;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.commenthandler.NodeCommentMap;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* This test tests the behavior of the class ASTCommenter. It checks if the ASTCommenter assigns
|
||||
* the comments contained in an AST to the right ASTNodes.<br>
|
||||
|
@ -92,6 +96,12 @@ public class CommentHandlingTest extends RewriteBaseTest {
|
|||
super(name, files);
|
||||
}
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
TestSuite suite = new TestSuite(CommentHandlingTestSuite.class.getName());
|
||||
suite.addTest(RewriteTester.suite("CommentTests", "resources/rewrite/CommentHandlingTestSource.rts")); //$NON-NLS-1$
|
||||
return suite;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void runTest() throws Throwable {
|
||||
if (fileMap.isEmpty()) {
|
||||
|
|
|
@ -14,21 +14,20 @@
|
|||
******************************************************************************/
|
||||
package org.eclipse.cdt.core.parser.tests.rewrite.comenthandler;
|
||||
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.RewriteTester;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @author Guido Zgraggen IFS
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class CommentHandlingTestSuite extends TestSuite {
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
TestSuite suite = new TestSuite(CommentHandlingTestSuite.class.getName());
|
||||
suite.addTest(RewriteTester.suite("CommentTests", "resources/rewrite/CommentHandlingTestSource.rts")); //$NON-NLS-1$
|
||||
suite.addTest(
|
||||
RewriteTester.suite("CommentMultiFileTests", "resources/rewrite/CommentHandlingWithRewriteTest.rts")); //$NON-NLS-1$
|
||||
suite.addTest(CommentHandlingTest.suite());
|
||||
suite.addTest(CommentHandlingWithRewriteTest.suite());
|
||||
suite.addTestSuite(NodeCommentMapTest.class);
|
||||
return suite;
|
||||
}
|
||||
|
|
|
@ -20,10 +20,14 @@ import java.util.List;
|
|||
import org.eclipse.cdt.core.dom.ast.IASTNode;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
|
||||
import org.eclipse.cdt.core.dom.rewrite.ASTRewrite;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.RewriteTester;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.TestSourceFile;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.commenthandler.NodeCommentMap;
|
||||
import org.eclipse.text.edits.TextEditGroup;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class CommentHandlingWithRewriteTest extends CommentHandlingTest {
|
||||
private ASTRewrite newRewrite;
|
||||
|
||||
|
@ -31,6 +35,13 @@ public class CommentHandlingWithRewriteTest extends CommentHandlingTest {
|
|||
super(name, files);
|
||||
}
|
||||
|
||||
public static Test suite() throws Exception {
|
||||
TestSuite suite = new TestSuite(CommentHandlingTestSuite.class.getName());
|
||||
suite.addTest(
|
||||
RewriteTester.suite("CommentMultiFileTests", "resources/rewrite/CommentHandlingWithRewriteTest.rts")); //$NON-NLS-1$
|
||||
return suite;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void runTest() throws Throwable {
|
||||
IASTTranslationUnit tu = getUnit("main.cpp");
|
||||
|
|
|
@ -16,6 +16,10 @@ package org.eclipse.cdt.core.parser.tests.scanner;
|
|||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
/**
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class ScannerTestSuite extends TestSuite {
|
||||
|
||||
public static Test suite() {
|
||||
|
|
|
@ -36,31 +36,31 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* For testing PDOM binding resolution
|
||||
*/
|
||||
public class IndexCBindingResolutionBugs extends IndexBindingResolutionTestBase {
|
||||
public abstract class IndexCBindingResolutionBugsTest extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexCBindingResolutionBugs {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexCBindingResolutionBugsTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexCBindingResolutionBugs {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexCBindingResolutionBugsTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new ReferencedProject(false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
// #include <stdio.h>
|
|
@ -38,31 +38,31 @@ import junit.framework.TestSuite;
|
|||
* additionally check that the binding obtained has characteristics as
|
||||
* expected (type,name,etc..)
|
||||
*/
|
||||
public class IndexCBindingResolutionTest extends IndexBindingResolutionTestBase {
|
||||
public abstract class IndexCBindingResolutionTest extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexCBindingResolutionTest {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexCBindingResolutionTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexCBindingResolutionTest {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexCBindingResolutionTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new ReferencedProject(false));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
public IndexCBindingResolutionTest() {
|
||||
|
|
|
@ -15,13 +15,13 @@ package org.eclipse.cdt.internal.index.tests;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class IndexCPPBindingResolutionBugsSingleProjectFirstAST extends IndexCPPBindingResolutionBugs {
|
||||
public IndexCPPBindingResolutionBugsSingleProjectFirstAST() {
|
||||
public class IndexCPPBindingResolutionBugsSingleProjectFirstASTTest extends IndexCPPBindingResolutionBugsTest {
|
||||
public IndexCPPBindingResolutionBugsSingleProjectFirstASTTest() {
|
||||
setStrategy(new SinglePDOMTestFirstASTStrategy(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(IndexCPPBindingResolutionBugsSingleProjectFirstAST.class);
|
||||
return suite(IndexCPPBindingResolutionBugsSingleProjectFirstASTTest.class);
|
||||
}
|
||||
|
||||
/* Invalid tests for this strategy, they assume that the second file is already indexed. */
|
|
@ -70,39 +70,39 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* For testing PDOM binding resolution
|
||||
*/
|
||||
public class IndexCPPBindingResolutionBugs extends IndexBindingResolutionTestBase {
|
||||
public abstract class IndexCPPBindingResolutionBugsTest extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexCPPBindingResolutionBugs {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexCPPBindingResolutionBugsTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexCPPBindingResolutionBugs {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexCPPBindingResolutionBugsTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new ReferencedProject(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(IndexCPPBindingResolutionBugsSingleProjectFirstAST.suite());
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(IndexCPPBindingResolutionBugsSingleProjectFirstASTTest.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(IndexCPPBindingResolutionBugs.class);
|
||||
return suite(IndexCPPBindingResolutionBugsTest.class);
|
||||
}
|
||||
|
||||
public IndexCPPBindingResolutionBugs() {
|
||||
public IndexCPPBindingResolutionBugsTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true));
|
||||
}
|
||||
|
|
@ -65,31 +65,31 @@ import junit.framework.TestSuite;
|
|||
* additionally check that the binding obtained has characteristics as
|
||||
* expected (type,name,etc..)
|
||||
*/
|
||||
public class IndexCPPBindingResolutionTest extends IndexBindingResolutionTestBase {
|
||||
public abstract class IndexCPPBindingResolutionTest extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexCPPBindingResolutionTest {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexCPPBindingResolutionTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexCPPBindingResolutionTest {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexCPPBindingResolutionTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new ReferencedProject(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
public IndexCPPBindingResolutionTest() {
|
||||
|
@ -97,7 +97,7 @@ public class IndexCPPBindingResolutionTest extends IndexBindingResolutionTestBas
|
|||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
|
||||
/* Assertion helpers */
|
||||
|
|
|
@ -77,25 +77,25 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* Tests for exercising resolution of template bindings against IIndex
|
||||
*/
|
||||
public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBase {
|
||||
public abstract class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexCPPTemplateResolutionTest {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexCPPTemplateResolutionTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexCPPTemplateResolutionTest {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexCPPTemplateResolutionTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new ReferencedProject(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -106,8 +106,8 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
|
|||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
public IndexCPPTemplateResolutionTest() {
|
||||
|
|
|
@ -24,31 +24,31 @@ import org.eclipse.cdt.core.index.IIndexBinding;
|
|||
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
public class IndexCPPVariableTemplateResolutionTest extends IndexBindingResolutionTestBase {
|
||||
public abstract class IndexCPPVariableTemplateResolutionTest extends IndexBindingResolutionTestBase {
|
||||
|
||||
public static class SingleProject extends IndexCPPVariableTemplateResolutionTest {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexCPPVariableTemplateResolutionTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new SinglePDOMTestStrategy(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexCPPVariableTemplateResolutionTest {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexCPPVariableTemplateResolutionTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new ReferencedProject(true));
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
public IndexCPPVariableTemplateResolutionTest() {
|
||||
|
|
|
@ -70,29 +70,29 @@ public abstract class IndexGPPBindingResolutionTest extends IndexBindingResoluti
|
|||
}
|
||||
}
|
||||
|
||||
public static class SingleProject extends IndexGPPBindingResolutionTest {
|
||||
public SingleProject() {
|
||||
public static class SingleProjectTest extends IndexGPPBindingResolutionTest {
|
||||
public SingleProjectTest() {
|
||||
setStrategy(new GPPSinglePDOMTestStrategy());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(SingleProject.class);
|
||||
return suite(SingleProjectTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProjectWithDepProj extends IndexGPPBindingResolutionTest {
|
||||
public ProjectWithDepProj() {
|
||||
public static class ProjectWithDepProjTest extends IndexGPPBindingResolutionTest {
|
||||
public ProjectWithDepProjTest() {
|
||||
setStrategy(new GPPReferencedProject());
|
||||
}
|
||||
|
||||
public static TestSuite suite() {
|
||||
return suite(ProjectWithDepProj.class);
|
||||
return suite(ProjectWithDepProjTest.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void addTests(TestSuite suite) {
|
||||
suite.addTest(SingleProject.suite());
|
||||
suite.addTest(ProjectWithDepProj.suite());
|
||||
suite.addTest(SingleProjectTest.suite());
|
||||
suite.addTest(ProjectWithDepProjTest.suite());
|
||||
}
|
||||
|
||||
// struct B {
|
||||
|
|
|
@ -24,10 +24,12 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* Test suite for the indexer tests
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
public class IndexTests extends TestSuite {
|
||||
@Deprecated
|
||||
public class IndexTestSuite extends TestSuite {
|
||||
public static Test suite() {
|
||||
TestSuite suite = new IndexTests();
|
||||
TestSuite suite = new IndexTestSuite();
|
||||
|
||||
suite.addTest(IndexCompositeTests.suite());
|
||||
suite.addTest(IndexListenerTest.suite());
|
||||
|
@ -51,11 +53,11 @@ public class IndexTests extends TestSuite {
|
|||
suite.addTestSuite(TemplateAutoIndexTests.class);
|
||||
suite.addTestSuite(StructuredBindingIndexTests.class);
|
||||
|
||||
IndexCPPBindingResolutionBugs.addTests(suite);
|
||||
IndexCPPBindingResolutionBugsTest.addTests(suite);
|
||||
IndexCPPBindingResolutionTest.addTests(suite);
|
||||
IndexGPPBindingResolutionTest.addTests(suite);
|
||||
IndexCPPTemplateResolutionTest.addTests(suite);
|
||||
IndexCBindingResolutionBugs.addTests(suite);
|
||||
IndexCBindingResolutionBugsTest.addTests(suite);
|
||||
IndexCBindingResolutionTest.addTests(suite);
|
||||
IndexCPPVariableTemplateResolutionTest.addTests(suite);
|
||||
|
|
@ -21,11 +21,13 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author Doug Schaefer
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
public class PDOMTests extends TestSuite {
|
||||
@Deprecated
|
||||
public class PDOMTestSuite extends TestSuite {
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new PDOMTests();
|
||||
TestSuite suite = new PDOMTestSuite();
|
||||
|
||||
suite.addTest(DatabaseTest.suite());
|
||||
suite.addTest(DBPropertiesTests.suite());
|
|
@ -44,9 +44,14 @@
|
|||
<!-- Core tests actually use eclipse.ui classes, see CProjectHelper -->
|
||||
<argLine>${tycho.testArgLine} ${base.ui.test.vmargs} ${extra.vmargs}</argLine>
|
||||
<appArgLine>-pluginCustomization ${basedir}/../../disable_intro_in_tests.ini</appArgLine>
|
||||
<includes>
|
||||
<include>**/AutomatedIntegrationSuite.*</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<!-- The default Excludes omits nested static classes, this reenables them.
|
||||
See org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr.ArrayTests.NonIndexingTests
|
||||
for an example of a test that would not be run otherwise.
|
||||
For reference, the default exclude is "**/*$*"
|
||||
-->
|
||||
<exclude></exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
@ -27,11 +27,11 @@ import junit.framework.TestResult;
|
|||
* Wraps a test case to check for its failure.
|
||||
* @author aniefer
|
||||
*/
|
||||
public class FailingTest extends TestCase {
|
||||
public class FailingTester extends TestCase {
|
||||
private TestCase test = null;
|
||||
private int bugNum = -1;
|
||||
|
||||
public FailingTest(TestCase test, int bugNumber) {
|
||||
public FailingTester(TestCase test, int bugNumber) {
|
||||
this.test = test;
|
||||
this.bugNum = bugNumber;
|
||||
String name = "Failing " + test.getName();
|
||||
|
@ -41,7 +41,7 @@ public class FailingTest extends TestCase {
|
|||
setName(name);
|
||||
}
|
||||
|
||||
public FailingTest(TestCase test) {
|
||||
public FailingTester(TestCase test) {
|
||||
this(test, -1);
|
||||
}
|
||||
|
|
@ -20,21 +20,21 @@ import org.eclipse.cdt.core.cdescriptor.tests.CDescriptorOldTests;
|
|||
import org.eclipse.cdt.core.cdescriptor.tests.CDescriptorTests;
|
||||
import org.eclipse.cdt.core.envvar.IEnvironmentVariableManagerTests;
|
||||
import org.eclipse.cdt.core.internal.efsextension.tests.EFSExtensionTests;
|
||||
import org.eclipse.cdt.core.internal.errorparsers.tests.ErrorParserTests;
|
||||
import org.eclipse.cdt.core.internal.errorparsers.tests.ErrorParserTestSuite;
|
||||
import org.eclipse.cdt.core.internal.tests.PositionTrackerTests;
|
||||
import org.eclipse.cdt.core.internal.tests.ResourceLookupTests;
|
||||
import org.eclipse.cdt.core.internal.tests.StringBuilderTest;
|
||||
import org.eclipse.cdt.core.language.AllLanguageTests;
|
||||
import org.eclipse.cdt.core.model.tests.AllCoreTests;
|
||||
import org.eclipse.cdt.core.language.AllLanguageTestSuite;
|
||||
import org.eclipse.cdt.core.model.tests.AllCoreTestSuite;
|
||||
import org.eclipse.cdt.core.model.tests.ElementDeltaTests;
|
||||
import org.eclipse.cdt.core.model.tests.WorkingCopyTests;
|
||||
import org.eclipse.cdt.core.parser.tests.ParserTestSuite;
|
||||
import org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr.AllConstexprEvalTests;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.RewriteTests;
|
||||
import org.eclipse.cdt.core.preferences.tests.TestScopeOfBuildConfigResourceChangesPreference;
|
||||
import org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr.AllConstexprEvalTestSuite;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.RewriteTestSuite;
|
||||
import org.eclipse.cdt.core.preferences.tests.ScopeOfBuildConfigResourceChangesPreferenceTests;
|
||||
import org.eclipse.cdt.core.resources.tests.RefreshScopeTests;
|
||||
import org.eclipse.cdt.internal.index.tests.IndexTests;
|
||||
import org.eclipse.cdt.internal.pdom.tests.PDOMTests;
|
||||
import org.eclipse.cdt.internal.index.tests.IndexTestSuite;
|
||||
import org.eclipse.cdt.internal.pdom.tests.PDOMTestSuite;
|
||||
import org.eclipse.cdt.utils.ByteUtilsTest;
|
||||
import org.eclipse.cdt.utils.CdtVariableResolverTest;
|
||||
import org.eclipse.cdt.utils.CommandLineUtilTest;
|
||||
|
@ -52,7 +52,9 @@ import junit.framework.TestSuite;
|
|||
|
||||
/**
|
||||
* @author vhirsl
|
||||
* @deprecated In preparation for moving to JUnit5 test suites are deprecated. See Bug 569839
|
||||
*/
|
||||
@Deprecated
|
||||
public class AutomatedIntegrationSuite extends TestSuite {
|
||||
|
||||
public AutomatedIntegrationSuite() {
|
||||
|
@ -77,19 +79,19 @@ public class AutomatedIntegrationSuite extends TestSuite {
|
|||
if (System.getProperty("cdt.skip.known.test.failures") == null) {
|
||||
suite.addTest(CDescriptorTests.suite());
|
||||
}
|
||||
suite.addTest(AllConstexprEvalTests.suite());
|
||||
suite.addTest(AllConstexprEvalTestSuite.suite());
|
||||
suite.addTest(ParserTestSuite.suite());
|
||||
suite.addTest(CDescriptorOldTests.suite());
|
||||
suite.addTest(IEnvironmentVariableManagerTests.suite());
|
||||
suite.addTest(ErrorParserTests.suite());
|
||||
suite.addTest(AllCoreTests.suite());
|
||||
suite.addTest(ErrorParserTestSuite.suite());
|
||||
suite.addTest(AllCoreTestSuite.suite());
|
||||
suite.addTest(ElementDeltaTests.suite());
|
||||
suite.addTest(WorkingCopyTests.suite());
|
||||
suite.addTest(PositionTrackerTests.suite());
|
||||
suite.addTest(ResourceLookupTests.suite());
|
||||
suite.addTest(StringBuilderTest.suite());
|
||||
suite.addTest(AllLanguageTests.suite());
|
||||
suite.addTest(RewriteTests.suite());
|
||||
suite.addTest(AllLanguageTestSuite.suite());
|
||||
suite.addTest(RewriteTestSuite.suite());
|
||||
suite.addTest(CdtVariableResolverTest.suite());
|
||||
suite.addTest(StorableCdtVariablesTest.suite());
|
||||
suite.addTest(CommandLineUtilTest.suite());
|
||||
|
@ -98,13 +100,13 @@ public class AutomatedIntegrationSuite extends TestSuite {
|
|||
suite.addTest(EFSExtensionTests.suite());
|
||||
suite.addTest(ByteUtilsTest.suite());
|
||||
suite.addTest(UNCPathConverterTest.suite());
|
||||
suite.addTest(TestScopeOfBuildConfigResourceChangesPreference.suite());
|
||||
suite.addTest(ScopeOfBuildConfigResourceChangesPreferenceTests.suite());
|
||||
suite.addTest(ElfParserTest.suite());
|
||||
suite.addTest(new JUnit4TestAdapter(ElfTest.class));
|
||||
|
||||
// Add in PDOM tests
|
||||
suite.addTest(PDOMTests.suite());
|
||||
suite.addTest(IndexTests.suite());
|
||||
suite.addTest(PDOMTestSuite.suite());
|
||||
suite.addTest(IndexTestSuite.suite());
|
||||
|
||||
suite.addTest(RefreshScopeTests.suite());
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.core.runtime.Path;
|
|||
* header1.h, header2.h, etc. The AST is created for the source file only and can be obtained
|
||||
* by calling getAst().
|
||||
*/
|
||||
public class OneSourceMultipleHeadersTestCase extends BaseTestCase {
|
||||
public abstract class OneSourceMultipleHeadersTestCase extends BaseTestCase {
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
private final TestSourceReader testSourceReader;
|
||||
|
|
|
@ -66,10 +66,14 @@
|
|||
<useUIThread>true</useUIThread>
|
||||
<argLine>${tycho.testArgLine} ${base.ui.test.vmargs} ${extra.vmargs.indexer.timeout} ${extra.vmargs.displayhelper.timeoutmultipler}</argLine>
|
||||
<appArgLine>-pluginCustomization ${basedir}/../../disable_intro_in_tests.ini</appArgLine>
|
||||
<includes>
|
||||
<!-- Workatound for Bug 565063: test execution outcome is order dependent -->
|
||||
<include>**/AutomatedSuite.*</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<!-- The default Excludes omits nested static classes, this reenables them.
|
||||
See org.eclipse.cdt.core.parser.tests.ast2.cxx14.constexpr.ArrayTests.NonIndexingTests
|
||||
for an example of a test that would not be run otherwise.
|
||||
For reference, the default exclude is "**/*$*"
|
||||
-->
|
||||
<exclude></exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
@ -27,14 +27,14 @@ import org.eclipse.ui.IWorkbenchWindow;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
public class CallHierarchyBugs extends CallHierarchyBaseTest {
|
||||
public class CallHierarchyBugsTest extends CallHierarchyBaseTest {
|
||||
|
||||
public CallHierarchyBugs(String name) {
|
||||
public CallHierarchyBugsTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
return suite(CallHierarchyBugs.class);
|
||||
return suite(CallHierarchyBugsTest.class);
|
||||
}
|
||||
|
||||
@Override
|
|
@ -21,7 +21,7 @@ import org.junit.runners.Suite;
|
|||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({ BasicCallHierarchyTest.class, BasicCppCallHierarchyTest.class,
|
||||
InitializersInCallHierarchyTest.class, CppCallHierarchyTest.class, CallHierarchyAcrossProjectsTest.class,
|
||||
CallHierarchyBugs.class, })
|
||||
CallHierarchyBugsTest.class, })
|
||||
public class CallHierarchyTestSuite {
|
||||
|
||||
}
|
||||
|
|
|
@ -25,7 +25,14 @@ import org.eclipse.cdt.ui.tests.refactoring.hidemethod.HideMethodRefactoringTest
|
|||
import org.eclipse.cdt.ui.tests.refactoring.implementmethod.ImplementMethodRefactoringTest;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.includes.IncludesTestSuite;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.overridemethods.OverrideMethodsRefactoringTest;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.rename.RenameFunctionTests;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.rename.RenameMacroTests;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.rename.RenameRegressionTests;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.rename.RenameTemplatesTests;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.rename.RenameTypeTests;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.rename.RenameVariableTests;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.togglefunction.ToggleNodeHelperTest;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.togglefunction.ToggleRefactoringCTest;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.togglefunction.ToggleRefactoringTest;
|
||||
import org.eclipse.cdt.ui.tests.refactoring.utils.UtilTestSuite;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -38,7 +45,9 @@ import org.junit.runners.Suite;
|
|||
@Suite.SuiteClasses({ UtilTestSuite.class, RenameRegressionTests.class, ExtractFunctionRefactoringTest.class,
|
||||
ExtractConstantRefactoringTest.class, HideMethodRefactoringTest.class, GenerateGettersAndSettersTest.class,
|
||||
ImplementMethodRefactoringTest.class, ExtractLocalVariableRefactoringTest.class, ToggleRefactoringTest.class,
|
||||
IncludesTestSuite.class, OverrideMethodsRefactoringTest.class
|
||||
ToggleRefactoringCTest.class, ToggleNodeHelperTest.class, IncludesTestSuite.class,
|
||||
OverrideMethodsRefactoringTest.class, RenameVariableTests.class, RenameFunctionTests.class,
|
||||
RenameTypeTests.class, RenameMacroTests.class, RenameTemplatesTests.class
|
||||
|
||||
})
|
||||
public class RefactoringTestSuite {
|
||||
|
|
|
@ -17,7 +17,7 @@ package org.eclipse.cdt.ui.tests.refactoring.rename;
|
|||
import java.io.StringWriter;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.IBinding;
|
||||
import org.eclipse.cdt.core.tests.FailingTest;
|
||||
import org.eclipse.cdt.core.tests.FailingTester;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.ltk.core.refactoring.Change;
|
||||
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
|
||||
|
@ -42,15 +42,10 @@ public class RenameRegressionTests extends RenameTestBase {
|
|||
|
||||
public static Test suite(boolean cleanup) {
|
||||
TestSuite innerSuite = new TestSuite(RenameRegressionTests.class);
|
||||
innerSuite.addTest(new FailingTest(new RenameRegressionTests("_testMethod_35_72726"), 72726));
|
||||
innerSuite.addTest(new FailingTester(new RenameRegressionTests("_testMethod_35_72726"), 72726));
|
||||
|
||||
TestSuite suite = new TestSuite("RenameRegressionTests");
|
||||
suite.addTest(innerSuite);
|
||||
suite.addTest(RenameVariableTests.suite(false));
|
||||
suite.addTest(RenameFunctionTests.suite(false));
|
||||
suite.addTest(RenameTypeTests.suite(false));
|
||||
suite.addTest(RenameMacroTests.suite(false));
|
||||
suite.addTest(RenameTemplatesTests.suite(false));
|
||||
|
||||
if (cleanup)
|
||||
suite.addTest(new RenameRegressionTests("cleanupProject"));
|
||||
|
|
|
@ -40,8 +40,6 @@ public class ToggleRefactoringTest extends RefactoringTestBase {
|
|||
|
||||
public static Test suite() {
|
||||
TestSuite suite = suite(ToggleRefactoringTest.class);
|
||||
suite.addTestSuite(ToggleRefactoringCTest.class);
|
||||
suite.addTestSuite(ToggleNodeHelperTest.class);
|
||||
return suite;
|
||||
}
|
||||
|
||||
|
|
|
@ -61,6 +61,11 @@ import org.junit.runners.Suite;
|
|||
AddBlockCommentTest.class, RemoveBlockCommentTest.class, SortLinesTest.class,
|
||||
|
||||
// add include
|
||||
AddIncludeTest.class, })
|
||||
AddIncludeTest.class,
|
||||
|
||||
// other tests
|
||||
OverrideIndicatorTest.class,
|
||||
|
||||
})
|
||||
public class TextTestSuite {
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* Test that anonymous types are not returned as possibilities.
|
||||
*/
|
||||
public class CompletionTest_AnonymousTypes extends CompletionProposalsBaseTest {
|
||||
public class AnonymousTypes_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart40.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart40.h";
|
||||
|
@ -27,15 +27,15 @@ public class CompletionTest_AnonymousTypes extends CompletionProposalsBaseTest {
|
|||
private final String expectedPrefix = "";
|
||||
private final String[] expectedResults = { "notAnonymousEnum", "notAnonymousClass", "xOtherClass" };
|
||||
|
||||
public CompletionTest_AnonymousTypes(String name) {
|
||||
public AnonymousTypes_CompletionTest(String name) {
|
||||
super(name);
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=174809
|
||||
// setExpectFailure(174809);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_AnonymousTypes.class.getName());
|
||||
suite.addTest(new CompletionTest_AnonymousTypes("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(AnonymousTypes_CompletionTest.class.getName());
|
||||
suite.addTest(new AnonymousTypes_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50642 : Wrong completion kind when declaring an argument type
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_ArgumentType_Prefix2 extends CompletionProposalsBaseTest {
|
||||
public class ArgumentType_Prefix2_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart18.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,15 +32,15 @@ public class CompletionTest_ArgumentType_Prefix2 extends CompletionProposalsBase
|
|||
private final String[] expectedResults = { "aClass", "anotherClass", "aNamespace", "anEnumeration", "AStruct",
|
||||
"AMacro(x)" };
|
||||
|
||||
public CompletionTest_ArgumentType_Prefix2(String name) {
|
||||
public ArgumentType_Prefix2_CompletionTest(String name) {
|
||||
super(name);
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=109724
|
||||
// setExpectFailure(109724);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ArgumentType_Prefix2.class.getName());
|
||||
suite.addTest(new CompletionTest_ArgumentType_Prefix2("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ArgumentType_Prefix2_CompletionTest.class.getName());
|
||||
suite.addTest(new ArgumentType_Prefix2_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50642 : Wrong completion kind when declaring an argument type
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_ArgumentType_Prefix extends CompletionProposalsBaseTest {
|
||||
public class ArgumentType_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart16.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,15 +32,15 @@ public class CompletionTest_ArgumentType_Prefix extends CompletionProposalsBaseT
|
|||
private final String[] expectedResults = { "aClass", "anotherClass", "aNamespace", "anEnumeration", "AStruct",
|
||||
"AMacro(x)" };
|
||||
|
||||
public CompletionTest_ArgumentType_Prefix(String name) {
|
||||
public ArgumentType_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=109724
|
||||
// setExpectFailure(109724);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ArgumentType_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_ArgumentType_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ArgumentType_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new ArgumentType_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ import junit.framework.TestSuite;
|
|||
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=50621
|
||||
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
*/
|
||||
public class CompletionTest_ClassReference_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class ClassReference_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart21.h";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_ClassReference_NoPrefix extends CompletionProposalsB
|
|||
private final String expectedPrefix = "";
|
||||
private final String[] expectedResults = { "aClass", "anotherClass", "xOtherClass", "AStruct", "XStruct" };
|
||||
|
||||
public CompletionTest_ClassReference_NoPrefix(String name) {
|
||||
public ClassReference_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ClassReference_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_ClassReference_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ClassReference_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new ClassReference_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ import junit.framework.TestSuite;
|
|||
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=50621
|
||||
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
*/
|
||||
public class CompletionTest_ClassReference_Prefix extends CompletionProposalsBaseTest {
|
||||
public class ClassReference_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart20.h";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_ClassReference_Prefix extends CompletionProposalsBas
|
|||
private final String expectedPrefix = "a";
|
||||
private final String[] expectedResults = { "aClass", "anotherClass", "AStruct" };
|
||||
|
||||
public CompletionTest_ClassReference_Prefix(String name) {
|
||||
public ClassReference_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ClassReference_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_ClassReference_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ClassReference_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new ClassReference_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_ConstructorReference extends CompletionProposalsBaseTest {
|
||||
public class ConstructorReference_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart35.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -34,15 +34,15 @@ public class CompletionTest_ConstructorReference extends CompletionProposalsBase
|
|||
// missing proposals:
|
||||
"xOtherClass(char*)", "xOtherClass(int)" };
|
||||
|
||||
public CompletionTest_ConstructorReference(String name) {
|
||||
public ConstructorReference_CompletionTest(String name) {
|
||||
super(name);
|
||||
// unknown failure
|
||||
setExpectFailure(77777);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ConstructorReference.class.getName());
|
||||
suite.addTest(new CompletionTest_ConstructorReference("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ConstructorReference_CompletionTest.class.getName());
|
||||
suite.addTest(new ConstructorReference_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -26,33 +26,77 @@ import org.junit.runners.Suite;
|
|||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({
|
||||
|
||||
CompletionTest_AnonymousTypes.class, CompletionTest_ArgumentType_Prefix.class,
|
||||
CompletionTest_ArgumentType_Prefix2.class, CompletionTest_ClassReference_NoPrefix.class,
|
||||
CompletionTest_ClassReference_Prefix.class, CompletionTest_ConstructorReference.class,
|
||||
CompletionTest_ExceptionReference_NoPrefix.class, CompletionTest_ExceptionReference_Prefix.class,
|
||||
CompletionTest_FieldType_NoPrefix.class, CompletionTest_FieldType_NoPrefix2.class,
|
||||
CompletionTest_FieldType_Prefix.class, CompletionTest_FunctionReference_Prefix.class,
|
||||
CompletionTest_MacroRef_NoPrefix.class, CompletionTest_MacroRef_Prefix.class,
|
||||
CompletionTest_MemberReference_Arrow_NoPrefix.class, CompletionTest_MemberReference_Arrow_NoPrefix2.class,
|
||||
CompletionTest_MemberReference_Arrow_NoPrefix3.class, CompletionTest_MemberReference_Arrow_Prefix.class,
|
||||
CompletionTest_MemberReference_Arrow_Prefix2.class, CompletionTest_MemberReference_Dot_NoPrefix.class,
|
||||
CompletionTest_MemberReference_Dot_Prefix.class, CompletionTest_NamespaceRef_NoPrefix.class,
|
||||
CompletionTest_NamespaceRef_Prefix.class, CompletionTest_NewTypeReference_NoPrefix.class,
|
||||
CompletionTest_NewTypeReference_Prefix.class, CompletionTest_ScopedReference_NonCodeScope.class,
|
||||
CompletionTest_ScopedReference_NoPrefix.class, CompletionTest_ScopedReference_Prefix.class,
|
||||
CompletionTest_SingleName_Method_NoPrefix.class, CompletionTest_SingleName_Method_Prefix.class,
|
||||
CompletionTest_SingleName_NoPrefix.class, CompletionTest_SingleName_Prefix.class,
|
||||
CompletionTest_SingleName_Prefix2.class, CompletionTest_TypeDef_NoPrefix.class,
|
||||
CompletionTest_TypeDef_Prefix.class, CompletionTest_TypeRef_NoPrefix.class, CompletionTest_TypeRef_Prefix.class,
|
||||
CompletionTest_VariableType_NestedPrefix.class, CompletionTest_VariableType_NoPrefix.class,
|
||||
CompletionTest_VariableType_Prefix.class,
|
||||
AnonymousTypes_CompletionTest.class, //
|
||||
ArgumentType_Prefix_CompletionTest.class, //
|
||||
|
||||
CompletionTests.class, HelpProposalTests.class, CompletionTests_PlainC.class, ParameterHintTests.class,
|
||||
CPPParameterGuessingTests.class, CParameterGuessingTests.class,
|
||||
ArgumentType_Prefix2_CompletionTest.class, //
|
||||
ClassReference_NoPrefix_CompletionTest.class, //
|
||||
|
||||
ShowCamelCasePreferenceTest.class,
|
||||
ClassReference_Prefix_CompletionTest.class, //
|
||||
ConstructorReference_CompletionTest.class, //
|
||||
|
||||
TemplateProposalTest.class,
|
||||
ExceptionReference_NoPrefix_CompletionTest.class, //
|
||||
ExceptionReference_Prefix_CompletionTest.class, //
|
||||
|
||||
FieldType_NoPrefix_CompletionTest.class, //
|
||||
FieldType_NoPrefix2_CompletionTest.class, //
|
||||
|
||||
FieldType_Prefix_CompletionTest.class, //
|
||||
FunctionReference_Prefix_CompletionTest.class, //
|
||||
|
||||
MacroRef_NoPrefix_CompletionTest.class, //
|
||||
MacroRef_Prefix_CompletionTest.class, //
|
||||
|
||||
MemberReference_Arrow_NoPrefix_CompletionTest.class, //
|
||||
MemberReference_Arrow_NoPrefix2_CompletionTest.class, //
|
||||
|
||||
MemberReference_Arrow_NoPrefix3_CompletionTest.class, //
|
||||
MemberReference_Arrow_Prefix_CompletionTest.class, //
|
||||
|
||||
MemberReference_Arrow_Prefix2_CompletionTest.class, //
|
||||
MemberReference_Dot_NoPrefix_CompletionTest.class, //
|
||||
|
||||
MemberReference_Dot_Prefix_CompletionTest.class, //
|
||||
NamespaceRef_NoPrefix_CompletionTest.class, //
|
||||
|
||||
NamespaceRef_Prefix_CompletionTest.class, //
|
||||
NewTypeReference_NoPrefix_CompletionTest.class, //
|
||||
|
||||
NewTypeReference_Prefix_CompletionTest.class, //
|
||||
ScopedReference_NonCodeScope_CompletionTest.class, //
|
||||
|
||||
ScopedReference_NoPrefix_CompletionTest.class, //
|
||||
ScopedReference_Prefix_CompletionTest.class, //
|
||||
|
||||
SingleName_Method_NoPrefix_CompletionTest.class, //
|
||||
SingleName_Method_Prefix_CompletionTest.class, //
|
||||
|
||||
SingleName_NoPrefix_CompletionTest.class, //
|
||||
SingleName_Prefix_CompletionTest.class, //
|
||||
|
||||
SingleName_Prefix2_CompletionTest.class, //
|
||||
TypeDef_NoPrefix_CompletionTest.class, //
|
||||
|
||||
TypeDef_Prefix_CompletionTest.class, //
|
||||
TypeRef_NoPrefix_CompletionTest.class, //
|
||||
TypeRef_Prefix_CompletionTest.class, //
|
||||
|
||||
VariableType_NestedPrefix_CompletionTest.class, //
|
||||
VariableType_NoPrefix_CompletionTest.class, //
|
||||
|
||||
VariableType_Prefix_CompletionTest.class, //
|
||||
|
||||
CompletionTests.class, //
|
||||
HelpProposalTests.class, //
|
||||
PlainC_CompletionTests.class, //
|
||||
ParameterHintTests.class, //
|
||||
|
||||
CPPParameterGuessingTests.class, //
|
||||
CParameterGuessingTests.class, //
|
||||
|
||||
ShowCamelCasePreferenceTest.class, //
|
||||
|
||||
TemplateProposalTest.class, //
|
||||
|
||||
})
|
||||
public class ContentAssist2TestSuite {
|
||||
|
|
|
@ -24,7 +24,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50640 : Wrong completion kind when expecting an exception
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_ExceptionReference_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class ExceptionReference_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart23.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -34,14 +34,14 @@ public class CompletionTest_ExceptionReference_NoPrefix extends CompletionPropos
|
|||
private final String[] expectedResults = { "AStruct", "XStruct", "aClass", "aNamespace", "anEnumeration",
|
||||
"anotherClass", "xEnumeration", "xNamespace", "xOtherClass" };
|
||||
|
||||
public CompletionTest_ExceptionReference_NoPrefix(String name) {
|
||||
public ExceptionReference_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ExceptionReference_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_ExceptionReference_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ExceptionReference_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new ExceptionReference_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50640 : Wrong completion kind when expecting an exception
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_ExceptionReference_Prefix extends CompletionProposalsBaseTest {
|
||||
public class ExceptionReference_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart22.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -33,15 +33,15 @@ public class CompletionTest_ExceptionReference_Prefix extends CompletionProposal
|
|||
private final String[] expectedResults = { "aClass", "anotherClass", "aNamespace", "anEnumeration", "AStruct",
|
||||
"AMacro(x)" };
|
||||
|
||||
public CompletionTest_ExceptionReference_Prefix(String name) {
|
||||
public ExceptionReference_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=109724
|
||||
// setExpectFailure(109724);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ExceptionReference_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_ExceptionReference_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ExceptionReference_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new ExceptionReference_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50344 :Wrong completion in Class scope if before the first declaration
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_FieldType_NoPrefix2 extends CompletionProposalsBaseTest {
|
||||
public class FieldType_NoPrefix2_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart13.h";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -34,14 +34,14 @@ public class CompletionTest_FieldType_NoPrefix2 extends CompletionProposalsBaseT
|
|||
private final String[] expectedResults = { "AStruct", "XStruct", "aClass", "aNamespace", "aThirdClass",
|
||||
"anEnumeration", "anotherClass", "xEnumeration", "xNamespace", "xOtherClass" };
|
||||
|
||||
public CompletionTest_FieldType_NoPrefix2(String name) {
|
||||
public FieldType_NoPrefix2_CompletionTest(String name) {
|
||||
super(name);
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_FieldType_NoPrefix2.class.getName());
|
||||
suite.addTest(new CompletionTest_FieldType_NoPrefix2("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(FieldType_NoPrefix2_CompletionTest.class.getName());
|
||||
suite.addTest(new FieldType_NoPrefix2_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Testing Field_Type, with NO prefix
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_FieldType_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class FieldType_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart12.h";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,14 +32,14 @@ public class CompletionTest_FieldType_NoPrefix extends CompletionProposalsBaseTe
|
|||
private final String[] expectedResults = { "AStruct", "XStruct", "aClass", "aNamespace", "aThirdClass",
|
||||
"anEnumeration", "anotherClass", "xEnumeration", "xNamespace", "xOtherClass" };
|
||||
|
||||
public CompletionTest_FieldType_NoPrefix(String name) {
|
||||
public FieldType_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_FieldType_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_FieldType_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(FieldType_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new FieldType_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ import junit.framework.TestSuite;
|
|||
* Testing Field_Type completion kind , with a prefix
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_FieldType_Prefix extends CompletionProposalsBaseTest {
|
||||
public class FieldType_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart4.h";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -31,15 +31,15 @@ public class CompletionTest_FieldType_Prefix extends CompletionProposalsBaseTest
|
|||
private final String[] expectedResults = { "aClass", "anotherClass", "aThirdClass", "aNamespace", "anEnumeration",
|
||||
"AStruct", "AMacro(x)" };
|
||||
|
||||
public CompletionTest_FieldType_Prefix(String name) {
|
||||
public FieldType_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=109724
|
||||
// setExpectFailure(109724);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_FieldType_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_FieldType_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(FieldType_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new FieldType_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_FunctionReference_Prefix extends CompletionProposalsBaseTest {
|
||||
public class FunctionReference_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart36.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -33,15 +33,15 @@ public class CompletionTest_FunctionReference_Prefix extends CompletionProposals
|
|||
"xAClassMethod(int x) : void", "xFunction(void) : bool", "xOtherFunction(void) : void", "xNamespace",
|
||||
"xOtherClass", "xFirstEnum", "xSecondEnum", "xThirdEnum", "xEnumeration", "XMacro(x, y)", "XStruct" };
|
||||
|
||||
public CompletionTest_FunctionReference_Prefix(String name) {
|
||||
public FunctionReference_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=109724
|
||||
//setExpectFailure(109724);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_FunctionReference_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_FunctionReference_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(FunctionReference_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new FunctionReference_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50487 :Wrong completion kind and prefix after "#ifdef"
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_MacroRef_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class MacroRef_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart26.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -36,13 +36,13 @@ public class CompletionTest_MacroRef_NoPrefix extends CompletionProposalsBaseTes
|
|||
"__extension__", "__has_include", "__has_include_next", "__imag__", "__null", "__offsetof__(x)", "__real__",
|
||||
"__stdcall", "__thread", };
|
||||
|
||||
public CompletionTest_MacroRef_NoPrefix(String name) {
|
||||
public MacroRef_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MacroRef_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_MacroRef_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MacroRef_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new MacroRef_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50487 :Wrong completion kind and prefix after "#ifdef"
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_MacroRef_Prefix extends CompletionProposalsBaseTest {
|
||||
public class MacroRef_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart27.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_MacroRef_Prefix extends CompletionProposalsBaseTest
|
|||
private final String expectedPrefix = "D";
|
||||
private final String[] expectedResults = { "DEBUG" };
|
||||
|
||||
public CompletionTest_MacroRef_Prefix(String name) {
|
||||
public MacroRef_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MacroRef_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_MacroRef_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MacroRef_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new MacroRef_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* Test operator is followed during member reference
|
||||
*/
|
||||
public class CompletionTest_MemberReference_Arrow_NoPrefix2 extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Arrow_NoPrefix2_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart41.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart41.h";
|
||||
|
@ -27,13 +27,13 @@ public class CompletionTest_MemberReference_Arrow_NoPrefix2 extends CompletionPr
|
|||
private final String expectedPrefix = "";
|
||||
private final String[] expectedResults = { "A", "foo(void) : void", "operator ->(void) : B *" };
|
||||
|
||||
public CompletionTest_MemberReference_Arrow_NoPrefix2(String name) {
|
||||
public MemberReference_Arrow_NoPrefix2_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Arrow_NoPrefix2.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Arrow_NoPrefix2("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Arrow_NoPrefix2_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Arrow_NoPrefix2_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ import junit.framework.TestSuite;
|
|||
/**
|
||||
* Testing operator is not followed on pointer to class with overloaded operator ->
|
||||
*/
|
||||
public class CompletionTest_MemberReference_Arrow_NoPrefix3 extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Arrow_NoPrefix3_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart42.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart41.h";
|
||||
|
@ -27,13 +27,13 @@ public class CompletionTest_MemberReference_Arrow_NoPrefix3 extends CompletionPr
|
|||
private final String expectedPrefix = "";
|
||||
private final String[] expectedResults = { "B", "bar(void) : void" };
|
||||
|
||||
public CompletionTest_MemberReference_Arrow_NoPrefix3(String name) {
|
||||
public MemberReference_Arrow_NoPrefix3_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Arrow_NoPrefix3.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Arrow_NoPrefix3("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Arrow_NoPrefix3_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Arrow_NoPrefix3_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ import junit.framework.TestSuite;
|
|||
*
|
||||
*/
|
||||
|
||||
public class CompletionTest_MemberReference_Arrow_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Arrow_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart10.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -34,13 +34,13 @@ public class CompletionTest_MemberReference_Arrow_NoPrefix extends CompletionPro
|
|||
"xAClassMethod(int x) : void", "aClass" // aClass is valid
|
||||
};
|
||||
|
||||
public CompletionTest_MemberReference_Arrow_NoPrefix(String name) {
|
||||
public MemberReference_Arrow_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Arrow_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Arrow_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Arrow_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Arrow_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Complex Context: Function return value: foo()->a(CTRL+SPACE)
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_MemberReference_Arrow_Prefix2 extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Arrow_Prefix2_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart7.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_MemberReference_Arrow_Prefix2 extends CompletionProp
|
|||
private final String[] expectedResults = { "aClass", // aClass is valid
|
||||
"aField : int", "aMethod(void) : int" };
|
||||
|
||||
public CompletionTest_MemberReference_Arrow_Prefix2(String name) {
|
||||
public MemberReference_Arrow_Prefix2_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Arrow_Prefix2.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Arrow_Prefix2("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Arrow_Prefix2_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Arrow_Prefix2_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* After an ->
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_MemberReference_Arrow_Prefix extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Arrow_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart6.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_MemberReference_Arrow_Prefix extends CompletionPropo
|
|||
private final String[] expectedResults = { "aField : int", "aMethod(void) : int", "aClass" // aClass is valid
|
||||
};
|
||||
|
||||
public CompletionTest_MemberReference_Arrow_Prefix(String name) {
|
||||
public MemberReference_Arrow_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Arrow_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Arrow_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Arrow_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Arrow_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* After a .
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_MemberReference_Dot_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Dot_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart9.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -33,13 +33,13 @@ public class CompletionTest_MemberReference_Dot_NoPrefix extends CompletionPropo
|
|||
"xAClassMethod(int x) : void", "aClass" // aClass is valid
|
||||
};
|
||||
|
||||
public CompletionTest_MemberReference_Dot_NoPrefix(String name) {
|
||||
public MemberReference_Dot_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Dot_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Dot_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Dot_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Dot_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* After a .
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_MemberReference_Dot_Prefix extends CompletionProposalsBaseTest {
|
||||
public class MemberReference_Dot_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart2.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_MemberReference_Dot_Prefix extends CompletionProposa
|
|||
private final String[] expectedResults = { "aField : int", "aMethod(void) : int", "aClass" // aClass is valid
|
||||
};
|
||||
|
||||
public CompletionTest_MemberReference_Dot_Prefix(String name) {
|
||||
public MemberReference_Dot_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_MemberReference_Dot_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_MemberReference_Dot_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(MemberReference_Dot_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new MemberReference_Dot_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Testing Namespace_Reference, with no prefix
|
||||
* Bug#50471 : Wrong completion kind after the "using" keyword
|
||||
*/
|
||||
public class CompletionTest_NamespaceRef_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class NamespaceRef_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
private final String fileName = "CompletionTestStart32.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
private final String headerFileName = "CompletionTestStart.h";
|
||||
|
@ -31,14 +31,14 @@ public class CompletionTest_NamespaceRef_NoPrefix extends CompletionProposalsBas
|
|||
private final String expectedPrefix = "";
|
||||
private final String[] expectedResults = { "aNamespace", "xNamespace" };
|
||||
|
||||
public CompletionTest_NamespaceRef_NoPrefix(String name) {
|
||||
public NamespaceRef_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_NamespaceRef_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_NamespaceRef_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(NamespaceRef_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new NamespaceRef_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50471 : Wrong completion kind after the "using" keyword
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_NamespaceRef_Prefix extends CompletionProposalsBaseTest {
|
||||
public class NamespaceRef_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart33.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -33,14 +33,14 @@ public class CompletionTest_NamespaceRef_Prefix extends CompletionProposalsBaseT
|
|||
private final String expectedPrefix = "a";
|
||||
private final String[] expectedResults = { "aNamespace" };
|
||||
|
||||
public CompletionTest_NamespaceRef_Prefix(String name) {
|
||||
public NamespaceRef_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=169860
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_NamespaceRef_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_NamespaceRef_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(NamespaceRef_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new NamespaceRef_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50711 : Wrong completion kind in a new expression
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_NewTypeReference_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class NewTypeReference_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart29.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -35,13 +35,13 @@ public class CompletionTest_NewTypeReference_NoPrefix extends CompletionProposal
|
|||
// enums may not be desired, but valid
|
||||
"anEnumeration", "xEnumeration" };
|
||||
|
||||
public CompletionTest_NewTypeReference_NoPrefix(String name) {
|
||||
public NewTypeReference_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_NewTypeReference_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_NewTypeReference_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(NewTypeReference_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new NewTypeReference_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50711 : Wrong completion kind in a new expression
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_NewTypeReference_Prefix extends CompletionProposalsBaseTest {
|
||||
public class NewTypeReference_Prefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart28.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -33,13 +33,13 @@ public class CompletionTest_NewTypeReference_Prefix extends CompletionProposalsB
|
|||
private final String[] expectedResults = { "aClass", "anotherClass", "aNamespace", "AStruct", "anEnumeration",
|
||||
"AMacro(x)" };
|
||||
|
||||
public CompletionTest_NewTypeReference_Prefix(String name) {
|
||||
public NewTypeReference_Prefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_NewTypeReference_Prefix.class.getName());
|
||||
suite.addTest(new CompletionTest_NewTypeReference_Prefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(NewTypeReference_Prefix_CompletionTest.class.getName());
|
||||
suite.addTest(new NewTypeReference_Prefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ import junit.framework.Test;
|
|||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
public class CompletionTests_PlainC extends AbstractContentAssistTest {
|
||||
public class PlainC_CompletionTests extends AbstractContentAssistTest {
|
||||
|
||||
private static final String HEADER_FILE_NAME = "CompletionTest.h";
|
||||
private static final String SOURCE_FILE_NAME = "CompletionTest.c";
|
||||
|
@ -156,13 +156,13 @@ public class CompletionTests_PlainC extends AbstractContentAssistTest {
|
|||
// } gStruct;
|
||||
|
||||
public static Test suite() {
|
||||
return BaseTestCase.suite(CompletionTests_PlainC.class, "_");
|
||||
return BaseTestCase.suite(PlainC_CompletionTests.class, "_");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name
|
||||
*/
|
||||
public CompletionTests_PlainC(String name) {
|
||||
public PlainC_CompletionTests(String name) {
|
||||
super(name, false);
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ import junit.framework.TestSuite;
|
|||
* Bug#50152: Wrong context sent after a "::"
|
||||
*
|
||||
*/
|
||||
public class CompletionTest_ScopedReference_NoPrefix extends CompletionProposalsBaseTest {
|
||||
public class ScopedReference_NoPrefix_CompletionTest extends CompletionProposalsBaseTest {
|
||||
|
||||
private final String fileName = "CompletionTestStart30.cpp";
|
||||
private final String fileFullPath = "resources/contentassist/" + fileName;
|
||||
|
@ -32,13 +32,13 @@ public class CompletionTest_ScopedReference_NoPrefix extends CompletionProposals
|
|||
private final String expectedPrefix = "";
|
||||
private final String[] expectedResults = { "aNamespaceFunction(void) : void" };
|
||||
|
||||
public CompletionTest_ScopedReference_NoPrefix(String name) {
|
||||
public ScopedReference_NoPrefix_CompletionTest(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite(CompletionTest_ScopedReference_NoPrefix.class.getName());
|
||||
suite.addTest(new CompletionTest_ScopedReference_NoPrefix("testCompletionProposals"));
|
||||
TestSuite suite = new TestSuite(ScopedReference_NoPrefix_CompletionTest.class.getName());
|
||||
suite.addTest(new ScopedReference_NoPrefix_CompletionTest("testCompletionProposals"));
|
||||
return suite;
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue