Final updates to use local test images rather than remote
git-svn-id: https://zxing.googlecode.com/svn/trunk@432 59b500cc-1b3d-0410-9834-0bbf25fbcc57
BIN
core/test/data/blackbox/qrcode-2/1.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
|
@ -1 +0,0 @@
|
|||
http://writerresponsetheory.org/wordpress/wp-content/uploads/qrcode_01.png
|
BIN
core/test/data/blackbox/qrcode-2/10.gif
Normal file
After Width: | Height: | Size: 2.2 KiB |
|
@ -1 +0,0 @@
|
|||
http://www.google.co.jp/mobile/images/qrcode_mobile.gif
|
BIN
core/test/data/blackbox/qrcode-2/11.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
|
@ -1 +0,0 @@
|
|||
http://www.d-co.de/images/qrcode_eg1.gif
|
BIN
core/test/data/blackbox/qrcode-2/2.png
Normal file
After Width: | Height: | Size: 3 KiB |
|
@ -1 +0,0 @@
|
|||
http://writerresponsetheory.org/query/poe/qrcode%20outputs/qrcodegen-examples/chunk-from-128-bug-head/encodes-by-nfggames/qr-chunk-from-128-bughead-ground.png
|
BIN
core/test/data/blackbox/qrcode-2/4.jpg
Normal file
After Width: | Height: | Size: 215 KiB |
|
@ -1 +0,0 @@
|
|||
http://www.qrcodeblog.com/qr/0609/060902_qr_kawasaki_st02.jpg
|
BIN
core/test/data/blackbox/qrcode-2/5.jpg
Normal file
After Width: | Height: | Size: 95 KiB |
|
@ -1 +0,0 @@
|
|||
http://mobile.kaywa.com/files/images/2007/4/480/mob181_1175524511.jpg
|
BIN
core/test/data/blackbox/qrcode-2/6.jpg
Normal file
After Width: | Height: | Size: 195 KiB |
|
@ -1 +0,0 @@
|
|||
http://www.smoothplanet.com/files/images/2007/2/mob281_1170754866.jpg
|
BIN
core/test/data/blackbox/qrcode-2/7.gif
Normal file
After Width: | Height: | Size: 17 KiB |
|
@ -1 +0,0 @@
|
|||
http://www.mobileviews.com/blog/wp-content/uploads/2006/11/livebarcode.gif
|
BIN
core/test/data/blackbox/qrcode-2/8.gif
Normal file
After Width: | Height: | Size: 9.5 KiB |
|
@ -1 +0,0 @@
|
|||
http://staticrooster.com/tshirts/qr_sm.gif
|
BIN
core/test/data/blackbox/qrcode-2/9.png
Normal file
After Width: | Height: | Size: 490 B |
|
@ -1 +0,0 @@
|
|||
http://www.ihaveanidea.org/blogs/uploads/i/interactive/270.png
|
|
@ -35,7 +35,6 @@ import java.io.FileInputStream;
|
|||
import java.io.FilenameFilter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
|
||||
|
@ -55,8 +54,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
|
|||
public boolean accept(File dir, String name) {
|
||||
String lowerCase = name.toLowerCase();
|
||||
return lowerCase.endsWith(".jpg") || lowerCase.endsWith(".jpeg") ||
|
||||
lowerCase.endsWith(".gif") || lowerCase.endsWith(".png") ||
|
||||
lowerCase.endsWith(".url");
|
||||
lowerCase.endsWith(".gif") || lowerCase.endsWith(".png");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -108,13 +106,7 @@ public abstract class AbstractBlackBoxTestCase extends TestCase {
|
|||
for (File testImage : imageFiles) {
|
||||
System.out.println("Starting " + testImage.getAbsolutePath());
|
||||
|
||||
BufferedImage image;
|
||||
if (testImage.getName().endsWith(".url")) {
|
||||
String urlString = readFileAsString(testImage);
|
||||
image = ImageIO.read(new URL(urlString));
|
||||
} else {
|
||||
image = ImageIO.read(testImage);
|
||||
}
|
||||
BufferedImage image = ImageIO.read(testImage);
|
||||
|
||||
String testImageFileName = testImage.getName();
|
||||
File expectedTextFile = new File(testBase,
|
||||
|
|