Added rounding code to getRow() as well and updated the tests accordingly.
[zxing.git] / core / test / src / com / google / zxing / oned / ITFBlackBox1TestCase.java
index 28d81f0..9be4d10 100644 (file)
 package com.google.zxing.oned;\r
 \r
 import com.google.zxing.BarcodeFormat;\r
-import com.google.zxing.DecodeHintType;\r
 import com.google.zxing.MultiFormatReader;\r
 import com.google.zxing.common.AbstractBlackBoxTestCase;\r
 \r
-import java.util.Hashtable;\r
-import java.util.Vector;\r
-\r
 /**\r
  * @author kevin.osullivan@sita.aero\r
  */\r
@@ -31,28 +27,8 @@ public final class ITFBlackBox1TestCase extends AbstractBlackBoxTestCase {
 \r
   public ITFBlackBox1TestCase() {\r
     super("test/data/blackbox/itf-1", new MultiFormatReader(), BarcodeFormat.ITF);\r
-    addTest(9, 12, 0.0f);\r
-  }\r
-\r
-  // TODO(dswitkin): This is only used for the mean time because ITF is not turned on by default.\r
-  // The other formats are included here to make sure we don't recognize an ITF barcode as something\r
-  // else. Unfortunately this list is fragile. The right thing to do is profile ITF for performance,\r
-  // and if it doesn't impose significant overhead, turn it on by default. Then this method can be\r
-  // removed completely.\r
-  @Override\r
-  protected Hashtable<DecodeHintType, Object> getHints() {\r
-    Hashtable<DecodeHintType, Object> hints = new Hashtable<DecodeHintType, Object>(3);\r
-    Vector<BarcodeFormat> vector = new Vector<BarcodeFormat>();\r
-    vector.addElement(BarcodeFormat.UPC_A);\r
-    vector.addElement(BarcodeFormat.UPC_E);\r
-    vector.addElement(BarcodeFormat.EAN_13);\r
-    vector.addElement(BarcodeFormat.EAN_8);\r
-    vector.addElement(BarcodeFormat.CODE_39);\r
-    vector.addElement(BarcodeFormat.CODE_128);\r
-    vector.addElement(BarcodeFormat.ITF);\r
-    vector.addElement(BarcodeFormat.QR_CODE);\r
-    hints.put(DecodeHintType.POSSIBLE_FORMATS, vector);\r
-    return hints;\r
+    addTest(8, 12, 0.0f);\r
+    addTest(11, 12, 180.0f);\r
   }\r
 \r
 }\r