tests: improve test fail msg for easier debugging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1481774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-05-13 10:16:42 +00:00
parent e64b4aa347
commit c8178bd351
1 changed files with 1 additions and 2 deletions

View File

@ -195,9 +195,8 @@ public class ZkCLITest extends SolrTestCaseJ4 {
int indexOfRelativePath = sourceFile.getAbsolutePath().lastIndexOf("collection1/conf");
String relativePathofFile = sourceFile.getAbsolutePath().substring(indexOfRelativePath + 17, sourceFile.getAbsolutePath().length());
File downloadedFile = new File(confDir,relativePathofFile);
assertTrue("Make sure we did download each file in the original configuration",downloadedFile.exists());
assertTrue(downloadedFile.getAbsolutePath() + " does not exist source:" + sourceFile.getAbsolutePath(), downloadedFile.exists());
assertTrue("Content didn't change",FileUtils.contentEquals(sourceFile,downloadedFile));
}
}