ISSUE: http://code.google.com/p/zxing/issues/detail?id=110
authorkev.sully <kev.sully@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 20 Nov 2008 17:27:12 +0000 (17:27 +0000)
committerkev.sully <kev.sully@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 20 Nov 2008 17:27:12 +0000 (17:27 +0000)
Renamed ITF14Reader to ITFReader. ITFReader now reads arbitrary number of digits. Added a QuietZone check. Removed checksum validation. Added more test cases.

git-svn-id: http://zxing.googlecode.com/svn/trunk@745 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java [deleted file]
core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java [new file with mode: 0644]

diff --git a/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java b/core/test/src/com/google/zxing/oned/ITF14BlackBox1TestCase.java
deleted file mode 100644 (file)
index 16a1f9f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * 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.BarcodeFormat;
-import com.google.zxing.common.AbstractBlackBoxTestCase;
-
-import java.io.File;
-
-/**
- * @author kevin.osullivan@sita.aero
- */
-public final class ITF14BlackBox1TestCase extends AbstractBlackBoxTestCase {
-
-  public ITF14BlackBox1TestCase() {
-    // TODO re-enable MultiFormatReader here once we've better settled how to handle all these new formats
-    super(new File("test/data/blackbox/itf14-1"), new ITF14Reader(), BarcodeFormat.ITF_14);
-    addTest(2, 2, 0.0f);
-    addTest(2, 2, 180.0f);
-  }
-
-}
\ No newline at end of file
diff --git a/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java b/core/test/src/com/google/zxing/oned/ITFBlackBox1TestCase.java
new file mode 100644 (file)
index 0000000..e6682f6
--- /dev/null
@@ -0,0 +1,35 @@
+/*\r
+ * Copyright 2008 ZXing authors\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *      http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package com.google.zxing.oned;\r
+\r
+import com.google.zxing.MultiFormatReader;\r
+import com.google.zxing.BarcodeFormat;\r
+import com.google.zxing.common.AbstractBlackBoxTestCase;\r
+\r
+import java.io.File;\r
+\r
+/**\r
+ * @author kevin.osullivan@sita.aero\r
+ */\r
+public final class ITFBlackBox1TestCase extends AbstractBlackBoxTestCase {\r
+\r
+  public ITFBlackBox1TestCase() {\r
+    super(new File("test/data/blackbox/itf-1"), new MultiFormatReader(), BarcodeFormat.ITF);\r
+    addTest(6, 6, 0.0f);\r
+  }\r
+\r
+}
\ No newline at end of file