@Test public void testMatchWithSpaces() throws IOException { String standardOutputFilePath = "/tmp/voj-matcher-tests/match-with-spaces-std.txt"; String outputFilePath = "/tmp/voj-matcher-tests/match-with-spaces.txt"; Assertions.assertTrue(comparator.isOutputTheSame(standardOutputFilePath, outputFilePath)); Assertions.assertTrue(comparator.isOutputTheSame(outputFilePath, standardOutputFilePath)); }
public boolean isOutputTheSame(String standardOutputFilePath, String outputFilePath) throws IOException { File stdFile = new File(standardOutputFilePath); File file = new File(outputFilePath); LineIterator stdFileItr = FileUtils.lineIterator(stdFile, "UTF-8"); LineIterator fileItr = FileUtils.lineIterator(file, "UTF-8"); boolean isFileOutputTheSame = isFileOutputTheSame(stdFileItr, fileItr); LineIterator.closeQuietly(stdFileItr); LineIterator.closeQuietly(fileItr); return isFileOutputTheSame; }
Comparator { public boolean isOutputTheSame(String standardOutputFilePath, String outputFilePath) throws IOException { File stdFile = new File(standardOutputFilePath); File file = new File(outputFilePath); LineIterator stdFileItr = FileUtils.lineIterator(stdFile, "UTF-8"); LineIterator fileItr = FileUtils.lineIterator(file, "UTF-8"); boolean isFileOutputTheSame = isFileOutputTheSame(stdFileItr, fileItr); LineIterator.closeQuietly(stdFileItr); LineIterator.closeQuietly(fileItr); return isFileOutputTheSame; } }
Comparator { public boolean isOutputTheSame(String standardOutputFilePath, String outputFilePath) throws IOException { File stdFile = new File(standardOutputFilePath); File file = new File(outputFilePath); LineIterator stdFileItr = FileUtils.lineIterator(stdFile, "UTF-8"); LineIterator fileItr = FileUtils.lineIterator(file, "UTF-8"); boolean isFileOutputTheSame = isFileOutputTheSame(stdFileItr, fileItr); LineIterator.closeQuietly(stdFileItr); LineIterator.closeQuietly(fileItr); return isFileOutputTheSame; }  }
Comparator { public boolean isOutputTheSame(String standardOutputFilePath, String outputFilePath) throws IOException { File stdFile = new File(standardOutputFilePath); File file = new File(outputFilePath); LineIterator stdFileItr = FileUtils.lineIterator(stdFile, "UTF-8"); LineIterator fileItr = FileUtils.lineIterator(file, "UTF-8"); boolean isFileOutputTheSame = isFileOutputTheSame(stdFileItr, fileItr); LineIterator.closeQuietly(stdFileItr); LineIterator.closeQuietly(fileItr); return isFileOutputTheSame; }  boolean isOutputTheSame(String standardOutputFilePath,
			String outputFilePath); }
Comparator { public boolean isOutputTheSame(String standardOutputFilePath, String outputFilePath) throws IOException { File stdFile = new File(standardOutputFilePath); File file = new File(outputFilePath); LineIterator stdFileItr = FileUtils.lineIterator(stdFile, "UTF-8"); LineIterator fileItr = FileUtils.lineIterator(file, "UTF-8"); boolean isFileOutputTheSame = isFileOutputTheSame(stdFileItr, fileItr); LineIterator.closeQuietly(stdFileItr); LineIterator.closeQuietly(fileItr); return isFileOutputTheSame; }  boolean isOutputTheSame(String standardOutputFilePath,
			String outputFilePath);  }