Skip to content

Commit 452e2ca

Browse files
committed
Code clean up.
1 parent bb2564f commit 452e2ca

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

edu.cuny.hunter.streamrefactoring.tests/test cases/edu/cuny/hunter/streamrefactoring/ui/tests/ConvertStreamToParallelRefactoringTest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,15 @@ protected ICompilationUnit createCUfromTestFile(IPackageFragment pack, String cu
280280
@Override
281281
protected ICompilationUnit createCUfromTestFile(IPackageFragment pack, String cuName, boolean input)
282282
throws Exception {
283-
String contents = input ? getFileContents(getInputTestFileName(cuName))
284-
: getFileContents(getOutputTestFileName(cuName));
283+
String testFileName;
284+
285+
if (input) {
286+
testFileName = getInputTestFileName(cuName);
287+
} else // output case.
288+
testFileName = getOutputTestFileName(cuName);
289+
290+
String contents = getFileContents(testFileName);
291+
285292
return createCU(pack, cuName + ".java", contents);
286293
}
287294

0 commit comments

Comments
 (0)