}
public void report(String received, String approved) throws Exception
{
ApprovalFailureReporter reporter = ReporterFactory.get(ReporterFactory.FileTypes.Text);
reporter.report(runQueryAndGetPath(received), runQueryAndGetPath(approved));
reporter.report(received, approved);
}
private String runQueryAndGetPath(String filename) throws IOException, Exception
{
if (!new File(filename).exists()) { return filename; }
String newQuery = FileUtils.readFile(filename).trim();