From 0be418487001dc4034ad217074117f91f53d3f99 Mon Sep 17 00:00:00 2001 From: srowen Date: Tue, 11 Mar 2008 15:28:23 +0000 Subject: [PATCH] Added overdue EAN-8 tests git-svn-id: https://zxing.googlecode.com/svn/trunk@268 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- core/test/data/blackbox/ean8-1/1.txt | 1 + core/test/data/blackbox/ean8-1/1.url | 1 + core/test/data/blackbox/ean8-1/2.txt | 1 + core/test/data/blackbox/ean8-1/2.url | 1 + core/test/data/blackbox/ean8-1/3.txt | 1 + core/test/data/blackbox/ean8-1/3.url | 1 + core/test/data/blackbox/ean8-1/4.txt | 1 + core/test/data/blackbox/ean8-1/4.url | 1 + core/test/data/blackbox/ean8-1/5.txt | 1 + core/test/data/blackbox/ean8-1/5.url | 1 + core/test/data/blackbox/ean8-1/6.txt | 1 + core/test/data/blackbox/ean8-1/6.url | 1 + core/test/data/blackbox/ean8-1/7.txt | 1 + core/test/data/blackbox/ean8-1/7.url | 1 + core/test/data/blackbox/ean8-1/8.txt | 1 + core/test/data/blackbox/ean8-1/8.url | 1 + .../zxing/oned/EAN8BlackBox1TestCase.java | 34 +++++++++++++++++++ 17 files changed, 50 insertions(+) create mode 100644 core/test/data/blackbox/ean8-1/1.txt create mode 100644 core/test/data/blackbox/ean8-1/1.url create mode 100644 core/test/data/blackbox/ean8-1/2.txt create mode 100644 core/test/data/blackbox/ean8-1/2.url create mode 100644 core/test/data/blackbox/ean8-1/3.txt create mode 100644 core/test/data/blackbox/ean8-1/3.url create mode 100644 core/test/data/blackbox/ean8-1/4.txt create mode 100644 core/test/data/blackbox/ean8-1/4.url create mode 100644 core/test/data/blackbox/ean8-1/5.txt create mode 100644 core/test/data/blackbox/ean8-1/5.url create mode 100644 core/test/data/blackbox/ean8-1/6.txt create mode 100644 core/test/data/blackbox/ean8-1/6.url create mode 100644 core/test/data/blackbox/ean8-1/7.txt create mode 100644 core/test/data/blackbox/ean8-1/7.url create mode 100644 core/test/data/blackbox/ean8-1/8.txt create mode 100644 core/test/data/blackbox/ean8-1/8.url create mode 100644 core/test/src/com/google/zxing/oned/EAN8BlackBox1TestCase.java diff --git a/core/test/data/blackbox/ean8-1/1.txt b/core/test/data/blackbox/ean8-1/1.txt new file mode 100644 index 000000000..cf23e8964 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/1.txt @@ -0,0 +1 @@ +48512343 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/1.url b/core/test/data/blackbox/ean8-1/1.url new file mode 100644 index 000000000..6cb4a3d83 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/1.url @@ -0,0 +1 @@ +http://www.gs1am.org/EAN8.gif \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/2.txt b/core/test/data/blackbox/ean8-1/2.txt new file mode 100644 index 000000000..c1c117816 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/2.txt @@ -0,0 +1 @@ +12345670 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/2.url b/core/test/data/blackbox/ean8-1/2.url new file mode 100644 index 000000000..de4b52c22 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/2.url @@ -0,0 +1 @@ +http://www.activebarcode.com/images/codes/200x125/ean8.gif \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/3.txt b/core/test/data/blackbox/ean8-1/3.txt new file mode 100644 index 000000000..c1c117816 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/3.txt @@ -0,0 +1 @@ +12345670 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/3.url b/core/test/data/blackbox/ean8-1/3.url new file mode 100644 index 000000000..0778d0316 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/3.url @@ -0,0 +1 @@ +http://www.scanlink.co.za/images_faq/ean8.gif \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/4.txt b/core/test/data/blackbox/ean8-1/4.txt new file mode 100644 index 000000000..2ab0cf492 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/4.txt @@ -0,0 +1 @@ +67678983 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/4.url b/core/test/data/blackbox/ean8-1/4.url new file mode 100644 index 000000000..0637569df --- /dev/null +++ b/core/test/data/blackbox/ean8-1/4.url @@ -0,0 +1 @@ +http://www.nextoffice.net/linux/barcode2.jpg \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/5.txt b/core/test/data/blackbox/ean8-1/5.txt new file mode 100644 index 000000000..4911bf2b5 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/5.txt @@ -0,0 +1 @@ +80674313 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/5.url b/core/test/data/blackbox/ean8-1/5.url new file mode 100644 index 000000000..5c2fdc392 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/5.url @@ -0,0 +1 @@ +http://www.indicod-ecr.it/prodottiservizi/images/ceu02b.gif \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/6.txt b/core/test/data/blackbox/ean8-1/6.txt new file mode 100644 index 000000000..d0ada6f4b --- /dev/null +++ b/core/test/data/blackbox/ean8-1/6.txt @@ -0,0 +1 @@ +59001270 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/6.url b/core/test/data/blackbox/ean8-1/6.url new file mode 100644 index 000000000..741ccfa95 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/6.url @@ -0,0 +1 @@ +http://www.selmar.pl/images_menus_big/431/453607ba29d0a/kody_kreskowe_ean8.jpg \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/7.txt b/core/test/data/blackbox/ean8-1/7.txt new file mode 100644 index 000000000..36db36bc4 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/7.txt @@ -0,0 +1 @@ +50487066 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/7.url b/core/test/data/blackbox/ean8-1/7.url new file mode 100644 index 000000000..4c0520757 --- /dev/null +++ b/core/test/data/blackbox/ean8-1/7.url @@ -0,0 +1 @@ +http://www.softeksoftware.co.uk/images/barcode_ean8.jpg \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/8.txt b/core/test/data/blackbox/ean8-1/8.txt new file mode 100644 index 000000000..a6c30695a --- /dev/null +++ b/core/test/data/blackbox/ean8-1/8.txt @@ -0,0 +1 @@ +55123457 \ No newline at end of file diff --git a/core/test/data/blackbox/ean8-1/8.url b/core/test/data/blackbox/ean8-1/8.url new file mode 100644 index 000000000..1c99f57be --- /dev/null +++ b/core/test/data/blackbox/ean8-1/8.url @@ -0,0 +1 @@ +http://www.barcodeisland.com/ean8-1.gif \ No newline at end of file diff --git a/core/test/src/com/google/zxing/oned/EAN8BlackBox1TestCase.java b/core/test/src/com/google/zxing/oned/EAN8BlackBox1TestCase.java new file mode 100644 index 000000000..4ab3e81be --- /dev/null +++ b/core/test/src/com/google/zxing/oned/EAN8BlackBox1TestCase.java @@ -0,0 +1,34 @@ +/* + * Copyright 2008 Google Inc. + * + * 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 srowen@google.com (Sean Owen) + */ +public final class EAN8BlackBox1TestCase extends AbstractBlackBoxTestCase { + + public EAN8BlackBox1TestCase() { + super(new File("test/data/blackbox/ean8-1"), new MultiFormatReader(), 0.66, BarcodeFormat.EAN_8); + } + +} \ No newline at end of file