1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

move index based resolution tests, as they are not specifically testing the pdom

This commit is contained in:
Andrew Ferguson 2007-03-16 18:09:41 +00:00
parent 7b8b0c57a7
commit 4612d251d4
7 changed files with 14 additions and 12 deletions

View file

@ -9,7 +9,7 @@
* Markus Schorn - initial API and implementation
* Andrew Ferguson (Symbian)
*******************************************************************************/
package org.eclipse.cdt.internal.pdom.tests;
package org.eclipse.cdt.internal.index.tests;
import junit.framework.TestSuite;
@ -127,5 +127,4 @@ public class IndexBindingResolutionBugs extends IndexBindingResolutionTestBase {
getBindingFromASTName("k=2", 1);
getBindingFromASTName("l=2", 1);
}
}

View file

@ -9,7 +9,7 @@
* Andrew Ferguson (Symbian) - Initial implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.internal.pdom.tests;
package org.eclipse.cdt.internal.index.tests;
import java.io.IOException;
@ -32,6 +32,7 @@ import org.eclipse.cdt.core.model.ILanguage;
import org.eclipse.cdt.core.model.LanguageManager;
import org.eclipse.cdt.core.testplugin.CProjectHelper;
import org.eclipse.cdt.core.testplugin.CTestPlugin;
import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
import org.eclipse.cdt.core.testplugin.util.TestSourceReader;
import org.eclipse.cdt.internal.core.CCoreInternals;
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPVisitor;
@ -53,7 +54,7 @@ import org.osgi.framework.Bundle;
* This class is for testing the process by which bindings are looked up in
* the PDOM purely from AST information (i.e. without a real binding from the DOM)
*/
public abstract class IndexBindingResolutionTestBase extends PDOMTestBase {
public abstract class IndexBindingResolutionTestBase extends BaseTestCase {
private ITestStrategy strategy;
public void setStrategy(ITestStrategy strategy) {

View file

@ -9,7 +9,7 @@
* Markus Schorn - initial API and implementation
* Andrew Ferguson (Symbian)
*******************************************************************************/
package org.eclipse.cdt.internal.pdom.tests;
package org.eclipse.cdt.internal.index.tests;
import junit.framework.TestSuite;

View file

@ -8,7 +8,7 @@
* Contributors:
* Andrew Ferguson (Symbian) - Initial implementation
*******************************************************************************/
package org.eclipse.cdt.internal.pdom.tests;
package org.eclipse.cdt.internal.index.tests;
import java.io.IOException;

View file

@ -8,7 +8,7 @@
* Contributors:
* Andrew Ferguson (Symbian) - Initial implementation
*******************************************************************************/
package org.eclipse.cdt.internal.pdom.tests;
package org.eclipse.cdt.internal.index.tests;
import java.io.IOException;
import java.util.Arrays;

View file

@ -20,6 +20,7 @@ public class IndexTests extends TestSuite {
public static Test suite() {
TestSuite suite = new IndexTests();
suite.addTest(IndexCompositeTests.suite());
suite.addTest(IndexListenerTest.suite());
suite.addTest(IndexLocationTest.suite());
@ -28,6 +29,12 @@ public class IndexTests extends TestSuite {
suite.addTest(IndexBugsTests.suite());
suite.addTest(EnclosingNamesTest.suite());
suite.addTest(TeamSharedIndexTest.suite());
IndexCBindingResolutionTest.addTests(suite);
IndexCPPBindingResolutionTest.addTests(suite);
IndexCBindingResolutionBugs.addTests(suite);
IndexBindingResolutionBugs.addTests(suite);
return suite;
}

View file

@ -43,11 +43,6 @@ public class PDOMTests extends TestSuite {
suite.addTest(CPPVariableTests.suite());
suite.addTest(MethodTests.suite());
suite.addTest(NamespaceTests.suite());
IndexCBindingResolutionTest.addTests(suite);
IndexCPPBindingResolutionTest.addTests(suite);
IndexCBindingResolutionBugs.addTests(suite);
IndexBindingResolutionBugs.addTests(suite);
suite.addTest(CFunctionTests.suite());
suite.addTest(CVariableTests.suite());