1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 09:55:29 +02:00

Bug 440940 - Remove a couple of test classes that are no longer useful

Change-Id: I664a77c49fc58120cab6f2c78c8ed57edc87fa7b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
This commit is contained in:
Nathan Ridge 2015-03-30 01:21:10 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 0745c0a502
commit 4ff8bab2fb
5 changed files with 22 additions and 61 deletions

View file

@ -1,25 +0,0 @@
/*******************************************************************************
* Copyright (c) 2006 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.ui.tests.text.selection;
import junit.framework.Test;
import org.eclipse.cdt.core.dom.IPDOMManager;
public class CPPSelectionTestsFastIndexer extends CPPSelectionTestsAnyIndexer {
public CPPSelectionTestsFastIndexer(String name) {
super(name, IPDOMManager.ID_FAST_INDEXER);
}
public static Test suite() {
return suite(CPPSelectionTestsFastIndexer.class);
}
}

View file

@ -13,6 +13,8 @@ package org.eclipse.cdt.ui.tests.text.selection;
import java.io.IOException;
import junit.framework.Test;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ui.IEditorInput;
@ -36,13 +38,17 @@ import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
/**
* Test Ctrl-F3/F3 with the DOM Indexer for a C++ project.
*/
public abstract class CPPSelectionTestsAnyIndexer extends BaseSelectionTestsIndexer {
public class CPPSelectionTestsIndexer extends BaseSelectionTestsIndexer {
protected String sourceIndexerID;
protected IIndex index;
public CPPSelectionTestsAnyIndexer(String name, String indexerID) {
public CPPSelectionTestsIndexer(String name) {
super(name);
sourceIndexerID= indexerID;
sourceIndexerID= IPDOMManager.ID_FAST_INDEXER;
}
public static Test suite() {
return suite(CPPSelectionTestsIndexer.class);
}
@Override
@ -74,7 +80,7 @@ public abstract class CPPSelectionTestsAnyIndexer extends BaseSelectionTestsInde
protected StringBuilder[] getContents(int sections) throws IOException {
return TestSourceReader.getContentsForTest(
CTestPlugin.getDefault().getBundle(), "ui", CPPSelectionTestsAnyIndexer.class, getName(), sections);
CTestPlugin.getDefault().getBundle(), "ui", CPPSelectionTestsIndexer.class, getName(), sections);
}
private void assertNode(String name, int offset, IASTNode node) {

View file

@ -1,26 +0,0 @@
/*******************************************************************************
* Copyright (c) 2006 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.ui.tests.text.selection;
import junit.framework.Test;
import org.eclipse.cdt.core.dom.IPDOMManager;
public class CSelectionTestsFastIndexer extends CSelectionTestsAnyIndexer {
public CSelectionTestsFastIndexer(String name) {
super(name, IPDOMManager.ID_FAST_INDEXER);
}
public static Test suite() {
return suite(CSelectionTestsFastIndexer.class);
}
}

View file

@ -12,6 +12,8 @@ package org.eclipse.cdt.ui.tests.text.selection;
import java.io.IOException;
import junit.framework.Test;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ui.IEditorInput;
@ -32,13 +34,17 @@ import org.eclipse.cdt.ui.testplugin.CTestPlugin;
import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
public abstract class CSelectionTestsAnyIndexer extends BaseSelectionTestsIndexer {
public class CSelectionTestsIndexer extends BaseSelectionTestsIndexer {
private String sourceIndexerID;
private IIndex index;
public CSelectionTestsAnyIndexer(String name, String indexerID) {
public CSelectionTestsIndexer(String name) {
super(name);
sourceIndexerID= indexerID;
sourceIndexerID= IPDOMManager.ID_FAST_INDEXER;
}
public static Test suite() {
return suite(CSelectionTestsIndexer.class);
}
@Override
@ -67,7 +73,7 @@ public abstract class CSelectionTestsAnyIndexer extends BaseSelectionTestsIndexe
protected StringBuilder[] getContents(int sections) throws IOException {
return TestSourceReader.getContentsForTest(
CTestPlugin.getDefault().getBundle(), "ui", CSelectionTestsAnyIndexer.class, getName(), sections);
CTestPlugin.getDefault().getBundle(), "ui", CSelectionTestsIndexer.class, getName(), sections);
}
private void assertNode(String name, int offset, IASTNode node) {

View file

@ -26,7 +26,7 @@ public class SelectionTestSuite extends TestSuite {
addTest(ResolveBindingTests.suite());
addTest(CPPSelectionTestsNoIndexer.suite());
addTest(CSelectionTestsNoIndexer.suite());
addTest(CPPSelectionTestsFastIndexer.suite());
addTest(CSelectionTestsFastIndexer.suite());
addTest(CPPSelectionTestsIndexer.suite());
addTest(CSelectionTestsIndexer.suite());
}
}