mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 19:57:27 -08:00
Change some tests that used .jpg in path to use .png now
git-svn-id: https://zxing.googlecode.com/svn/trunk@2549 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
51d3596dd9
commit
067321b68a
|
@ -51,7 +51,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2binary_1() throws Exception {
|
||||
// (11)100224(17)110224(3102)000100
|
||||
String path = "test/data/blackbox/rssexpanded-1/1.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/1.png";
|
||||
String expected = " ...X...X .X....X. .XX...X. X..X...X ...XX.X. ..X.X... ..X.X..X ...X..X. X.X....X .X....X. .....X.. X...X...";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
|
@ -60,7 +60,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2binary_2() throws Exception {
|
||||
// (01)90012345678908(3103)001750
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.png";
|
||||
String expected = " ..X..... ......X. .XXX.X.X .X...XX. XXXXX.XX XX.X.... .XX.XX.X .XX.";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
|
@ -70,7 +70,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2binary_3() throws Exception {
|
||||
// (10)12A
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.png";
|
||||
String expected = " .......X ..XX..X. X.X....X .......X ....";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
|
@ -79,7 +79,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2binary_4() throws Exception {
|
||||
// (01)98898765432106(3202)012345(15)991231
|
||||
String path = "test/data/blackbox/rssexpanded-1/4.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/4.png";
|
||||
String expected = " ..XXXX.X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX..XX XX.X.XXX X..XX..X .X.XXXXX XXXX";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
|
@ -88,7 +88,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2binary_5() throws Exception {
|
||||
// (01)90614141000015(3202)000150
|
||||
String path = "test/data/blackbox/rssexpanded-1/5.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/5.png";
|
||||
String expected = " ..X.X... .XXXX.X. XX..XXXX ....XX.. X....... ....X... ....X..X .XX.";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
|
@ -117,7 +117,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)98898765432106(3103)001750
|
||||
|
||||
String expected = " ..X..XX. XXXX..XX X.XX.XX. .X....XX XXX..XX. X..X.... .XX.XX.X .XX.";
|
||||
String path = "test/data/blackbox/rssexpanded-1/12.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/12.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3102)001750(11)100312
|
||||
|
||||
String expected = " ..XXX... ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/15.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/15.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3202)001750(11)100312
|
||||
|
||||
String expected = " ..XXX..X ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/16.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/16.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3102)001750(13)100312
|
||||
|
||||
String expected = " ..XXX.X. ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/17.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/17.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3202)001750(13)100312
|
||||
|
||||
String expected = " ..XXX.XX ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/18.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/18.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3102)001750(15)100312
|
||||
|
||||
String expected = " ..XXXX.. ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/19.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/19.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3202)001750(15)100312
|
||||
|
||||
String expected = " ..XXXX.X ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/20.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/20.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3102)001750(17)100312
|
||||
|
||||
String expected = " ..XXXXX. ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/21.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/21.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ public final class RSSExpandedImage2binaryTestCase extends Assert {
|
|||
// (01)90012345678908(3202)001750(17)100312
|
||||
|
||||
String expected = " ..XXXXXX ........ .X..XXX. X.X.X... XX.XXXXX .XXXX.X. ..XX...X .X.....X .XX..... XXXX.X.. XX..";
|
||||
String path = "test/data/blackbox/rssexpanded-1/22.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/22.png";
|
||||
|
||||
assertCorrectImage2binary(path, expected);
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class RSSExpandedImage2resultTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2result_2() throws Exception {
|
||||
// (01)90012345678908(3103)001750
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.png";
|
||||
ExpandedProductParsedResult expected =
|
||||
new ExpandedProductParsedResult("(01)90012345678908(3103)001750",
|
||||
"90012345678908",
|
||||
|
|
|
@ -51,7 +51,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
|
||||
@Test
|
||||
public void testDecodeRow2string_1() throws Exception {
|
||||
String path = "test/data/blackbox/rssexpanded-1/1.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/1.png";
|
||||
String expected = "(11)100224(17)110224(3102)000100";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
|
@ -59,7 +59,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
|
||||
@Test
|
||||
public void testDecodeRow2string_2() throws Exception {
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.png";
|
||||
String expected = "(01)90012345678908(3103)001750";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
|
@ -67,7 +67,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
|
||||
@Test
|
||||
public void testDecodeRow2string_3() throws Exception {
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.png";
|
||||
String expected = "(10)12A";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
|
@ -75,7 +75,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
|
||||
@Test
|
||||
public void testDecodeRow2string_4() throws Exception {
|
||||
String path = "test/data/blackbox/rssexpanded-1/4.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/4.png";
|
||||
String expected = "(01)98898765432106(3202)012345(15)991231";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
|
@ -83,7 +83,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
|
||||
@Test
|
||||
public void testDecodeRow2string_5() throws Exception {
|
||||
String path = "test/data/blackbox/rssexpanded-1/5.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/5.png";
|
||||
String expected = "(01)90614141000015(3202)000150";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
|
@ -116,7 +116,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_12() throws Exception {
|
||||
String expected = "(01)98898765432106(3103)001750";
|
||||
String path = "test/data/blackbox/rssexpanded-1/12.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/12.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_15() throws Exception {
|
||||
String expected = "(01)90012345678908(3102)001750(11)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/15.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/15.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_16() throws Exception {
|
||||
String expected = "(01)90012345678908(3202)001750(11)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/16.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/16.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_17() throws Exception {
|
||||
String expected = "(01)90012345678908(3102)001750(13)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/17.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/17.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_18() throws Exception {
|
||||
String expected = "(01)90012345678908(3202)001750(13)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/18.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/18.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_19() throws Exception {
|
||||
String expected = "(01)90012345678908(3102)001750(15)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/19.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/19.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_20() throws Exception {
|
||||
String expected = "(01)90012345678908(3202)001750(15)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/20.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/20.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_21() throws Exception {
|
||||
String expected = "(01)90012345678908(3102)001750(17)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/21.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/21.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ public final class RSSExpandedImage2stringTestCase extends Assert {
|
|||
@Test
|
||||
public void testDecodeRow2string_22() throws Exception {
|
||||
String expected = "(01)90012345678908(3202)001750(17)100312";
|
||||
String path = "test/data/blackbox/rssexpanded-1/22.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/22.png";
|
||||
|
||||
assertCorrectImage2string(path, expected);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public final class RSSExpandedInternalTestCase extends Assert {
|
|||
public void testFindFinderPatterns() throws Exception {
|
||||
RSSExpandedReader rssExpandedReader = new RSSExpandedReader();
|
||||
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/2.png";
|
||||
File file = new File(path);
|
||||
if (!file.exists()) {
|
||||
// Support running from project root too
|
||||
|
@ -98,7 +98,7 @@ public final class RSSExpandedInternalTestCase extends Assert {
|
|||
public void testRetrieveNextPairPatterns() throws Exception {
|
||||
RSSExpandedReader rssExpandedReader = new RSSExpandedReader();
|
||||
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.png";
|
||||
File file = new File(path);
|
||||
if (!file.exists()) {
|
||||
// Support running from project root too
|
||||
|
@ -128,7 +128,7 @@ public final class RSSExpandedInternalTestCase extends Assert {
|
|||
public void testDecodeCheckCharacter() throws Exception {
|
||||
RSSExpandedReader rssExpandedReader = new RSSExpandedReader();
|
||||
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.png";
|
||||
File file = new File(path);
|
||||
if (!file.exists()) {
|
||||
// Support running from project root too
|
||||
|
@ -152,7 +152,7 @@ public final class RSSExpandedInternalTestCase extends Assert {
|
|||
public void testDecodeDataCharacter() throws Exception {
|
||||
RSSExpandedReader rssExpandedReader = new RSSExpandedReader();
|
||||
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.jpg";
|
||||
String path = "test/data/blackbox/rssexpanded-1/3.png";
|
||||
File file = new File(path);
|
||||
if (!file.exists()) {
|
||||
// Support running from project root too
|
||||
|
|
Loading…
Reference in a new issue