Added overdue EAN-8 tests
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 11 Mar 2008 15:28:23 +0000 (15:28 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 11 Mar 2008 15:28:23 +0000 (15:28 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@268 59b500cc-1b3d-0410-9834-0bbf25fbcc57

17 files changed:
core/test/data/blackbox/ean8-1/1.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/1.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/2.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/2.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/3.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/3.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/4.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/4.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/5.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/5.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/6.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/6.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/7.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/7.url [new file with mode: 0644]
core/test/data/blackbox/ean8-1/8.txt [new file with mode: 0644]
core/test/data/blackbox/ean8-1/8.url [new file with mode: 0644]
core/test/src/com/google/zxing/oned/EAN8BlackBox1TestCase.java [new file with mode: 0644]

diff --git a/core/test/data/blackbox/ean8-1/1.txt b/core/test/data/blackbox/ean8-1/1.txt
new file mode 100644 (file)
index 0000000..cf23e89
--- /dev/null
@@ -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 (file)
index 0000000..6cb4a3d
--- /dev/null
@@ -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 (file)
index 0000000..c1c1178
--- /dev/null
@@ -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 (file)
index 0000000..de4b52c
--- /dev/null
@@ -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 (file)
index 0000000..c1c1178
--- /dev/null
@@ -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 (file)
index 0000000..0778d03
--- /dev/null
@@ -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 (file)
index 0000000..2ab0cf4
--- /dev/null
@@ -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 (file)
index 0000000..0637569
--- /dev/null
@@ -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 (file)
index 0000000..4911bf2
--- /dev/null
@@ -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 (file)
index 0000000..5c2fdc3
--- /dev/null
@@ -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 (file)
index 0000000..d0ada6f
--- /dev/null
@@ -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 (file)
index 0000000..741ccfa
--- /dev/null
@@ -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 (file)
index 0000000..36db36b
--- /dev/null
@@ -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 (file)
index 0000000..4c05207
--- /dev/null
@@ -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 (file)
index 0000000..a6c3069
--- /dev/null
@@ -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 (file)
index 0000000..1c99f57
--- /dev/null
@@ -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 (file)
index 0000000..4ab3e81
--- /dev/null
@@ -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