if (WRITE_ACTUAL_RESULTS_TO_FILE) {
File actual = new File(UnitTestUtil.getTestDataPath() + "/" +testName+".actual"); //$NON-NLS-1$ //$NON-NLS-2$
actualOut = new FileOutputStream(actual);
}
File expected = new File(UnitTestUtil.getTestDataPath() + "/"+testName+".expected"); //$NON-NLS-1$ //$NON-NLS-2$
expectedIn = new BufferedReader(new FileReader(expected));
}
PrintStream defaultStream = null;
if (PRINT_RESULTSETS_TO_CONSOLE) {
defaultStream = new PrintStream(System.out) {
// SYS.out should be protected from being closed.