Continuing with the x, y coordinate push, BitMatrix is now standardized. I also conve...
[zxing.git] / core / test / src / com / google / zxing / qrcode / decoder / DataMaskTestCase.java
index aeccb05..43ae4f2 100644 (file)
@@ -20,7 +20,7 @@ import com.google.zxing.common.BitMatrix;
 import junit.framework.TestCase;
 
 /**
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
  */
 public final class DataMaskTestCase extends TestCase {
 
@@ -99,18 +99,18 @@ public final class DataMaskTestCase extends TestCase {
 
   private void testMask(DataMask mask, int dimension, MaskCondition condition) {
     BitMatrix bits = new BitMatrix(dimension);
-    mask.unmaskBitMatrix(bits.getBits(), dimension);
+    mask.unmaskBitMatrix(bits, dimension);
     for (int i = 0; i < dimension; i++) {
       for (int j = 0; j < dimension; j++) {
         assertEquals(
             "(" + i + ',' + j + ')',
             condition.isMasked(i, j),
-            bits.get(i, j));
+            bits.get(j, i));
       }
     }
   }
 
-  private static interface MaskCondition {
+  private interface MaskCondition {
     boolean isMasked(int i, int j);
   }