1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 07:35:24 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-11-08 14:31:42 -08:00
parent 8677a111d1
commit 03f8b40b22

View file

@ -76,7 +76,7 @@ public class ToggleRefactoringTest extends RefactoringTest {
assertConditionsOk(refactoring.checkFinalConditions(NULL_PROGRESS_MONITOR)); assertConditionsOk(refactoring.checkFinalConditions(NULL_PROGRESS_MONITOR));
changes.perform(NULL_PROGRESS_MONITOR); changes.perform(NULL_PROGRESS_MONITOR);
filesDoExist(); filesDoExist();
for(String fileName: fileMap.keySet()) { for (String fileName: fileMap.keySet()) {
IFile iFile = project.getFile(new Path(fileName)); IFile iFile = project.getFile(new Path(fileName));
String code = getCodeFromIFile(iFile); String code = getCodeFromIFile(iFile);
String expectedSource = fileMap.get(fileName).getExpectedSource(); String expectedSource = fileMap.get(fileName).getExpectedSource();
@ -90,21 +90,21 @@ public class ToggleRefactoringTest extends RefactoringTest {
} }
private void filesDoExist() { private void filesDoExist() {
for(String fileName: newfiles) { for (String fileName: newfiles) {
IFile file = project.getFile(new Path(fileName)); IFile file = project.getFile(new Path(fileName));
assertTrue(file.exists()); assertTrue(file.exists());
} }
} }
private void filesDoNotExist() { private void filesDoNotExist() {
for(String fileName: newfiles) { for (String fileName: newfiles) {
IFile file = project.getFile(new Path(fileName)); IFile file = project.getFile(new Path(fileName));
assertFalse(file.exists()); assertFalse(file.exists());
} }
} }
private void removeFiles() throws CoreException { private void removeFiles() throws CoreException {
for(String fileName: newfiles) { for (String fileName: newfiles) {
IFile file = project.getFile(new Path(fileName)); IFile file = project.getFile(new Path(fileName));
file.delete(true, NULL_PROGRESS_MONITOR); file.delete(true, NULL_PROGRESS_MONITOR);
} }