5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-08 11:42:27 +08:00

SQOOP-2077: Sqoop2: Enclose missing/extra lines in output of HdfsAsserts.assertMapreduceOutput

(Jarek Jarcec Cecho via Abraham Elmahrek)
This commit is contained in:
Abraham Elmahrek 2015-02-05 15:17:30 -08:00
parent 7fff9ae909
commit d43dc1b0b5

View File

@ -67,10 +67,11 @@ public static void assertMapreduceOutput(FileSystem fs, String directory, String
}
if(!setLines.isEmpty() || !notFound.isEmpty()) {
LOG.error("Output do not match expectations.");
LOG.error("Expected lines that weren't present in the files:");
LOG.error("\t" + StringUtils.join(setLines, "\n\t"));
LOG.error("\t'" + StringUtils.join(setLines, "'\n\t'") + "'");
LOG.error("Extra lines in files that weren't expected:");
LOG.error("\t" + StringUtils.join(notFound, "\n\t"));
LOG.error("\t'" + StringUtils.join(notFound, "'\n\t'") + "'");
fail("Output do not match expectations.");
}
}