mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Cosmetics.
This commit is contained in:
parent
379dcc20dd
commit
ea4ce17b7d
2 changed files with 8 additions and 15 deletions
|
@ -59,14 +59,11 @@ public class ExtractFunctionRefactoringTest extends RefactoringTest {
|
||||||
if (fatalError) {
|
if (fatalError) {
|
||||||
assertConditionsFatalError(checkInitialConditions);
|
assertConditionsFatalError(checkInitialConditions);
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
assertConditionsOk(checkInitialConditions);
|
assertConditionsOk(checkInitialConditions);
|
||||||
setValues(info);
|
setValues(info);
|
||||||
executeRefactoring(refactoring);
|
executeRefactoring(refactoring);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void executeRefactoring(CRefactoring refactoring) throws CoreException, Exception {
|
protected void executeRefactoring(CRefactoring refactoring) throws CoreException, Exception {
|
||||||
|
@ -98,7 +95,6 @@ public class ExtractFunctionRefactoringTest extends RefactoringTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configureRefactoring(Properties refactoringProperties) {
|
protected void configureRefactoring(Properties refactoringProperties) {
|
||||||
methodName = refactoringProperties.getProperty("methodname", "exp"); //$NON-NLS-1$ //$NON-NLS-2$
|
methodName = refactoringProperties.getProperty("methodname", "exp"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
|
@ -109,5 +105,4 @@ public class ExtractFunctionRefactoringTest extends RefactoringTest {
|
||||||
visibility = VisibilityEnum.getEnumForStringRepresentation(refactoringProperties.getProperty("visibility", VisibilityEnum.v_private.toString())); //$NON-NLS-1$
|
visibility = VisibilityEnum.getEnumForStringRepresentation(refactoringProperties.getProperty("visibility", VisibilityEnum.v_private.toString())); //$NON-NLS-1$
|
||||||
virtual = Boolean.valueOf(refactoringProperties.getProperty("virtual", "false")).booleanValue(); //$NON-NLS-1$ //$NON-NLS-2$
|
virtual = Boolean.valueOf(refactoringProperties.getProperty("virtual", "false")).booleanValue(); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ import org.eclipse.cdt.ui.tests.refactoring.RefactoringTester;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Emanuel Graf
|
* @author Emanuel Graf
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class ExtractFunctionTestSuite extends TestSuite {
|
public class ExtractFunctionTestSuite extends TestSuite {
|
||||||
|
|
||||||
|
@ -33,5 +32,4 @@ public class ExtractFunctionTestSuite extends TestSuite {
|
||||||
suite.addTest(RefactoringTester.suite("Extract Function Dublicates Test", "resources/refactoring/ExtractMethodDuplicates.rts"));
|
suite.addTest(RefactoringTester.suite("Extract Function Dublicates Test", "resources/refactoring/ExtractMethodDuplicates.rts"));
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue