blob: 570ebaf5e54cbe888c4d729999da7f5e9f290973 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.ui.tests.refactoring.reorg;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jdt.ui.tests.refactoring.infra.AbstractRefactoringTestSetup;
public class RenameMethodPerfTests2 extends AbstractRenameMethodPerfTest {
private TestProject fTestProject;
public static Test suite() {
// we must make sure that cold is executed before warm
TestSuite suite= new TestSuite("RenameTypePerfAcceptanceTests2");
suite.addTest(new RenameMethodPerfTests2("testCold_10_10"));
suite.addTest(new RenameMethodPerfTests2("test_10_10"));
suite.addTest(new RenameMethodPerfTests2("test_10_100"));
suite.addTest(new RenameMethodPerfTests2("test_10_1000"));
return new AbstractRefactoringTestSetup(suite);
}
public static Test setUpTest(Test someTest) {
return new AbstractRefactoringTestSetup(someTest);
}
public RenameMethodPerfTests2(String name) {
super(name);
}
protected void setUp() throws Exception {
super.setUp();
fTestProject= new TestProject();
}
protected void tearDown() throws Exception {
fTestProject.delete();
super.tearDown();
}
public void testCold_10_10() throws Exception {
// 100 referencing CUs each containing 10 references
executeRefactoring(generateSources(10, 10));
}
public void test_10_10() throws Exception {
executeRefactoring(generateSources(10, 10));
}
public void test_10_100() throws Exception {
executeRefactoring(generateSources(10, 100));
}
public void test_10_1000() throws Exception {
executeRefactoring(generateSources(10, 1000));
}
}