diff --git a/core/test/data/blackbox/upca-3/01.jpg b/core/test/data/blackbox/upca-3/01.jpg new file mode 100755 index 000000000..e76085355 Binary files /dev/null and b/core/test/data/blackbox/upca-3/01.jpg differ diff --git a/core/test/data/blackbox/upca-3/01.txt b/core/test/data/blackbox/upca-3/01.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/01.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/02.jpg b/core/test/data/blackbox/upca-3/02.jpg new file mode 100755 index 000000000..353f0d812 Binary files /dev/null and b/core/test/data/blackbox/upca-3/02.jpg differ diff --git a/core/test/data/blackbox/upca-3/02.txt b/core/test/data/blackbox/upca-3/02.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/02.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/03.jpg b/core/test/data/blackbox/upca-3/03.jpg new file mode 100755 index 000000000..22e2200fc Binary files /dev/null and b/core/test/data/blackbox/upca-3/03.jpg differ diff --git a/core/test/data/blackbox/upca-3/03.txt b/core/test/data/blackbox/upca-3/03.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/03.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/04.jpg b/core/test/data/blackbox/upca-3/04.jpg new file mode 100755 index 000000000..3b435b7ef Binary files /dev/null and b/core/test/data/blackbox/upca-3/04.jpg differ diff --git a/core/test/data/blackbox/upca-3/04.txt b/core/test/data/blackbox/upca-3/04.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/04.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/05.jpg b/core/test/data/blackbox/upca-3/05.jpg new file mode 100755 index 000000000..c48bc76c4 Binary files /dev/null and b/core/test/data/blackbox/upca-3/05.jpg differ diff --git a/core/test/data/blackbox/upca-3/05.txt b/core/test/data/blackbox/upca-3/05.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/05.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/06.jpg b/core/test/data/blackbox/upca-3/06.jpg new file mode 100755 index 000000000..3e14579a9 Binary files /dev/null and b/core/test/data/blackbox/upca-3/06.jpg differ diff --git a/core/test/data/blackbox/upca-3/06.txt b/core/test/data/blackbox/upca-3/06.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/06.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/07.jpg b/core/test/data/blackbox/upca-3/07.jpg new file mode 100755 index 000000000..9cd6e1560 Binary files /dev/null and b/core/test/data/blackbox/upca-3/07.jpg differ diff --git a/core/test/data/blackbox/upca-3/07.txt b/core/test/data/blackbox/upca-3/07.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/07.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/08.jpg b/core/test/data/blackbox/upca-3/08.jpg new file mode 100755 index 000000000..163396312 Binary files /dev/null and b/core/test/data/blackbox/upca-3/08.jpg differ diff --git a/core/test/data/blackbox/upca-3/08.txt b/core/test/data/blackbox/upca-3/08.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/08.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/09.jpg b/core/test/data/blackbox/upca-3/09.jpg new file mode 100755 index 000000000..968715090 Binary files /dev/null and b/core/test/data/blackbox/upca-3/09.jpg differ diff --git a/core/test/data/blackbox/upca-3/09.txt b/core/test/data/blackbox/upca-3/09.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/09.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/10.jpg b/core/test/data/blackbox/upca-3/10.jpg new file mode 100755 index 000000000..72699a185 Binary files /dev/null and b/core/test/data/blackbox/upca-3/10.jpg differ diff --git a/core/test/data/blackbox/upca-3/10.txt b/core/test/data/blackbox/upca-3/10.txt new file mode 100644 index 000000000..688399481 --- /dev/null +++ b/core/test/data/blackbox/upca-3/10.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/11.jpg b/core/test/data/blackbox/upca-3/11.jpg new file mode 100755 index 000000000..8f403d8ae Binary files /dev/null and b/core/test/data/blackbox/upca-3/11.jpg differ diff --git a/core/test/data/blackbox/upca-3/11.txt b/core/test/data/blackbox/upca-3/11.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/11.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/12.jpg b/core/test/data/blackbox/upca-3/12.jpg new file mode 100755 index 000000000..3b9eb7571 Binary files /dev/null and b/core/test/data/blackbox/upca-3/12.jpg differ diff --git a/core/test/data/blackbox/upca-3/12.txt b/core/test/data/blackbox/upca-3/12.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/12.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/13.jpg b/core/test/data/blackbox/upca-3/13.jpg new file mode 100755 index 000000000..1db5b5c40 Binary files /dev/null and b/core/test/data/blackbox/upca-3/13.jpg differ diff --git a/core/test/data/blackbox/upca-3/13.txt b/core/test/data/blackbox/upca-3/13.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/13.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/14.jpg b/core/test/data/blackbox/upca-3/14.jpg new file mode 100755 index 000000000..b4d3780f8 Binary files /dev/null and b/core/test/data/blackbox/upca-3/14.jpg differ diff --git a/core/test/data/blackbox/upca-3/14.txt b/core/test/data/blackbox/upca-3/14.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/14.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/15.jpg b/core/test/data/blackbox/upca-3/15.jpg new file mode 100755 index 000000000..2009bbf52 Binary files /dev/null and b/core/test/data/blackbox/upca-3/15.jpg differ diff --git a/core/test/data/blackbox/upca-3/15.txt b/core/test/data/blackbox/upca-3/15.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/15.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/16.jpg b/core/test/data/blackbox/upca-3/16.jpg new file mode 100755 index 000000000..3d24a7ee2 Binary files /dev/null and b/core/test/data/blackbox/upca-3/16.jpg differ diff --git a/core/test/data/blackbox/upca-3/16.txt b/core/test/data/blackbox/upca-3/16.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/16.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/17.jpg b/core/test/data/blackbox/upca-3/17.jpg new file mode 100755 index 000000000..41de8a359 Binary files /dev/null and b/core/test/data/blackbox/upca-3/17.jpg differ diff --git a/core/test/data/blackbox/upca-3/17.txt b/core/test/data/blackbox/upca-3/17.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/17.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/18.jpg b/core/test/data/blackbox/upca-3/18.jpg new file mode 100755 index 000000000..4a705c960 Binary files /dev/null and b/core/test/data/blackbox/upca-3/18.jpg differ diff --git a/core/test/data/blackbox/upca-3/18.txt b/core/test/data/blackbox/upca-3/18.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/18.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/19.jpg b/core/test/data/blackbox/upca-3/19.jpg new file mode 100755 index 000000000..48c568cef Binary files /dev/null and b/core/test/data/blackbox/upca-3/19.jpg differ diff --git a/core/test/data/blackbox/upca-3/19.txt b/core/test/data/blackbox/upca-3/19.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/19.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/20.jpg b/core/test/data/blackbox/upca-3/20.jpg new file mode 100755 index 000000000..c67f78e86 Binary files /dev/null and b/core/test/data/blackbox/upca-3/20.jpg differ diff --git a/core/test/data/blackbox/upca-3/20.txt b/core/test/data/blackbox/upca-3/20.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/20.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/21.jpg b/core/test/data/blackbox/upca-3/21.jpg new file mode 100755 index 000000000..5404f17a2 Binary files /dev/null and b/core/test/data/blackbox/upca-3/21.jpg differ diff --git a/core/test/data/blackbox/upca-3/21.txt b/core/test/data/blackbox/upca-3/21.txt new file mode 100644 index 000000000..389d4d6f9 --- /dev/null +++ b/core/test/data/blackbox/upca-3/21.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/src/com/google/zxing/oned/UPCABlackBox3ReflectiveTestCase.java b/core/test/src/com/google/zxing/oned/UPCABlackBox3ReflectiveTestCase.java new file mode 100644 index 000000000..e486eab55 --- /dev/null +++ b/core/test/src/com/google/zxing/oned/UPCABlackBox3ReflectiveTestCase.java @@ -0,0 +1,36 @@ +/* + * Copyright 2008 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.zxing.oned; + +import com.google.zxing.MultiFormatReader; +import com.google.zxing.BarcodeFormat; +import com.google.zxing.common.AbstractBlackBoxTestCase; + +import java.io.File; + +/** + * @author dswitkin@google.com (Daniel Switkin) + */ +public final class UPCABlackBox3ReflectiveTestCase extends AbstractBlackBoxTestCase { + + public UPCABlackBox3ReflectiveTestCase() { + super(new File("test/data/blackbox/upca-3"), new MultiFormatReader(), BarcodeFormat.UPC_A); + addTest(8, 8, 0.0f); + addTest(6, 9, 180.0f); + } + +}