Improve error about missing test images

git-svn-id: https://zxing.googlecode.com/svn/trunk@2804 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-05-20 18:26:39 +00:00
parent 6fe6504dad
commit c29816a464
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ public abstract class AbstractBlackBoxTestCase extends Assert {
} }
protected final File[] getImageFiles() { protected final File[] getImageFiles() {
assertTrue("Please run from the 'core' directory", testBase.exists()); assertTrue("Please download and install test images, and run from the 'core' directory", testBase.exists());
return testBase.listFiles(IMAGE_NAME_FILTER); return testBase.listFiles(IMAGE_NAME_FILTER);
} }

View file

@ -45,7 +45,7 @@ public final class QRCodeWriterTestCase extends Assert {
// try starting with 'core' since the test base is often given as the project root // try starting with 'core' since the test base is often given as the project root
file = new File("core/" + BASE_IMAGE_PATH + fileName); file = new File("core/" + BASE_IMAGE_PATH + fileName);
} }
assertTrue("Please run from the 'core' directory", file.exists()); assertTrue("Please download and install test images, and run from the 'core' directory", file.exists());
return ImageIO.read(file); return ImageIO.read(file);
} }