diff --git a/core/test/data/blackbox/upca-4/1.jpg b/core/test/data/blackbox/upca-4/1.jpg new file mode 100644 index 000000000..9273edf87 Binary files /dev/null and b/core/test/data/blackbox/upca-4/1.jpg differ diff --git a/core/test/data/blackbox/upca-4/1.txt b/core/test/data/blackbox/upca-4/1.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/1.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-4/2.jpg b/core/test/data/blackbox/upca-4/2.jpg new file mode 100644 index 000000000..eaddef3e0 Binary files /dev/null and b/core/test/data/blackbox/upca-4/2.jpg differ diff --git a/core/test/data/blackbox/upca-4/2.txt b/core/test/data/blackbox/upca-4/2.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/2.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-4/3.jpg b/core/test/data/blackbox/upca-4/3.jpg new file mode 100644 index 000000000..c150e8bd3 Binary files /dev/null and b/core/test/data/blackbox/upca-4/3.jpg differ diff --git a/core/test/data/blackbox/upca-4/3.txt b/core/test/data/blackbox/upca-4/3.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/3.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-4/4.jpg b/core/test/data/blackbox/upca-4/4.jpg new file mode 100644 index 000000000..b2995d76b Binary files /dev/null and b/core/test/data/blackbox/upca-4/4.jpg differ diff --git a/core/test/data/blackbox/upca-4/4.txt b/core/test/data/blackbox/upca-4/4.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/4.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-4/5.jpg b/core/test/data/blackbox/upca-4/5.jpg new file mode 100644 index 000000000..2039351c1 Binary files /dev/null and b/core/test/data/blackbox/upca-4/5.jpg differ diff --git a/core/test/data/blackbox/upca-4/5.txt b/core/test/data/blackbox/upca-4/5.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/5.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-4/6.jpg b/core/test/data/blackbox/upca-4/6.jpg new file mode 100644 index 000000000..546b69f3b Binary files /dev/null and b/core/test/data/blackbox/upca-4/6.jpg differ diff --git a/core/test/data/blackbox/upca-4/6.txt b/core/test/data/blackbox/upca-4/6.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/6.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-4/7.jpg b/core/test/data/blackbox/upca-4/7.jpg new file mode 100644 index 000000000..0362c935a Binary files /dev/null and b/core/test/data/blackbox/upca-4/7.jpg differ diff --git a/core/test/data/blackbox/upca-4/7.txt b/core/test/data/blackbox/upca-4/7.txt new file mode 100644 index 000000000..6759a5e33 --- /dev/null +++ b/core/test/data/blackbox/upca-4/7.txt @@ -0,0 +1 @@ +023942431015 \ No newline at end of file diff --git a/core/test/src/com/google/zxing/oned/UPCABlackBox4TestCase.java b/core/test/src/com/google/zxing/oned/UPCABlackBox4TestCase.java new file mode 100644 index 000000000..87c6dc05c --- /dev/null +++ b/core/test/src/com/google/zxing/oned/UPCABlackBox4TestCase.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 UPCABlackBox4TestCase extends AbstractBlackBoxTestCase { + + public UPCABlackBox4TestCase() { + super(new File("test/data/blackbox/upca-4"), new MultiFormatReader(), BarcodeFormat.UPC_A); + addTest(0, 1, 0.0f); + addTest(0, 1, 180.0f); + } + +} \ No newline at end of file