*
* @param answer the correct results
* @throws IOException
*/
private void faultTestDataCheck(List<Pair<Integer, TachyonURI>> answer) throws IOException {
TachyonFS tfs = mLocalTachyonClusterMultiMaster.getClient();
List<String> files = TestUtils.listFiles(tfs, TachyonURI.SEPARATOR);
Assert.assertEquals(answer.size(), files.size());
for (int k = 0; k < answer.size(); k ++) {
Assert.assertEquals(answer.get(k).getSecond().toString(),
tfs.getFile(answer.get(k).getFirst()).getPath());
Assert.assertEquals(answer.get(k).getFirst().intValue(),
tfs.getFileId(answer.get(k).getSecond()));
}
}