mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Remove unused BaseTestCase
This commit is contained in:
parent
094a51f44a
commit
5c176c24e2
2 changed files with 2 additions and 46 deletions
|
@ -1,45 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 Intel Corporation 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:
|
||||
* Intel Corporation - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.managedbuilder.core.tests;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
|
||||
public class BasicTestCase extends TestCase {
|
||||
private List<IProject> fProjList = new LinkedList<IProject>();
|
||||
|
||||
protected void addProject(IProject project){
|
||||
fProjList.add(project);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void tearDown() throws Exception {
|
||||
for(Iterator<IProject> iter = fProjList.iterator(); iter.hasNext();){
|
||||
IProject proj = iter.next();
|
||||
try {
|
||||
proj.delete(true, null);
|
||||
} catch (CoreException e){
|
||||
}
|
||||
}
|
||||
super.tearDown();
|
||||
}
|
||||
}
|
|
@ -18,6 +18,7 @@ import java.util.Iterator;
|
|||
import java.util.Set;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import org.eclipse.cdt.core.model.CoreModel;
|
||||
|
@ -44,7 +45,7 @@ import org.eclipse.core.resources.IProject;
|
|||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
|
||||
public class ToolChainModificationTests extends BasicTestCase {
|
||||
public class ToolChainModificationTests extends TestCase {
|
||||
private static final String PROJ_NAME_PREFIX="TCM_";
|
||||
|
||||
public static Test suite() {
|
||||
|
|
Loading…
Add table
Reference in a new issue