mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
6fe6504dad
commit
c29816a464
|
@ -114,7 +114,7 @@ public abstract class AbstractBlackBoxTestCase extends Assert {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue