diff --git a/core/src/test/java/com/google/zxing/datamatrix/DataMatrixBlackBox1TestCase.java b/core/src/test/java/com/google/zxing/datamatrix/DataMatrixBlackBox1TestCase.java index 7fb83326b..540cc5038 100644 --- a/core/src/test/java/com/google/zxing/datamatrix/DataMatrixBlackBox1TestCase.java +++ b/core/src/test/java/com/google/zxing/datamatrix/DataMatrixBlackBox1TestCase.java @@ -27,10 +27,10 @@ public final class DataMatrixBlackBox1TestCase extends AbstractBlackBoxTestCase public DataMatrixBlackBox1TestCase() { super("src/test/resources/blackbox/datamatrix-1", new MultiFormatReader(), BarcodeFormat.DATA_MATRIX); - addTest(18, 18, 0.0f); - addTest(18, 18, 90.0f); - addTest(18, 18, 180.0f); - addTest(18, 18, 270.0f); + addTest(21, 21, 0.0f); + addTest(21, 21, 90.0f); + addTest(21, 21, 180.0f); + addTest(21, 21, 270.0f); } } \ No newline at end of file diff --git a/core/src/test/java/com/google/zxing/maxicode/Maxicode1TestCase.java b/core/src/test/java/com/google/zxing/maxicode/Maxicode1TestCase.java new file mode 100644 index 000000000..dfab4ad7b --- /dev/null +++ b/core/src/test/java/com/google/zxing/maxicode/Maxicode1TestCase.java @@ -0,0 +1,33 @@ +/* + * Copyright 2016 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.maxicode; + +import com.google.zxing.BarcodeFormat; +import com.google.zxing.MultiFormatReader; +import com.google.zxing.common.AbstractBlackBoxTestCase; + +public final class Maxicode1TestCase extends AbstractBlackBoxTestCase { + + public Maxicode1TestCase() { + super("src/test/resources/blackbox/maxicode-1", new MultiFormatReader(), BarcodeFormat.MAXICODE); + addTest(5, 5, 0.0f); + //addTest(5, 5, 90.0f); + //addTest(5, 5, 180.0f); + //addTest(5, 5, 270.0f); + } + +} \ No newline at end of file diff --git a/core/src/test/resources/blackbox/datamatrix-1/C40.png b/core/src/test/resources/blackbox/datamatrix-1/C40.png new file mode 100644 index 000000000..4d3915942 Binary files /dev/null and b/core/src/test/resources/blackbox/datamatrix-1/C40.png differ diff --git a/core/src/test/resources/blackbox/datamatrix-1/C40.txt b/core/src/test/resources/blackbox/datamatrix-1/C40.txt new file mode 100644 index 000000000..1dfb73f9f --- /dev/null +++ b/core/src/test/resources/blackbox/datamatrix-1/C40.txt @@ -0,0 +1 @@ +Testing C40 \ No newline at end of file diff --git a/core/src/test/resources/blackbox/datamatrix-1/EDIFACT.png b/core/src/test/resources/blackbox/datamatrix-1/EDIFACT.png new file mode 100644 index 000000000..cbf9006fa Binary files /dev/null and b/core/src/test/resources/blackbox/datamatrix-1/EDIFACT.png differ diff --git a/core/src/test/resources/blackbox/datamatrix-1/EDIFACT.txt b/core/src/test/resources/blackbox/datamatrix-1/EDIFACT.txt new file mode 100644 index 000000000..ea5d8129c --- /dev/null +++ b/core/src/test/resources/blackbox/datamatrix-1/EDIFACT.txt @@ -0,0 +1 @@ +EDIFACTEDIFACT \ No newline at end of file diff --git a/core/src/test/resources/blackbox/datamatrix-1/X12.png b/core/src/test/resources/blackbox/datamatrix-1/X12.png new file mode 100644 index 000000000..af766f555 Binary files /dev/null and b/core/src/test/resources/blackbox/datamatrix-1/X12.png differ diff --git a/core/src/test/resources/blackbox/datamatrix-1/X12.txt b/core/src/test/resources/blackbox/datamatrix-1/X12.txt new file mode 100644 index 000000000..68f83f84e --- /dev/null +++ b/core/src/test/resources/blackbox/datamatrix-1/X12.txt @@ -0,0 +1 @@ +X12X12X12X12 \ No newline at end of file diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE2.png b/core/src/test/resources/blackbox/maxicode-1/MODE2.png new file mode 100644 index 000000000..6ac2539a2 Binary files /dev/null and b/core/src/test/resources/blackbox/maxicode-1/MODE2.png differ diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE2.txt b/core/src/test/resources/blackbox/maxicode-1/MODE2.txt new file mode 100644 index 000000000..ad5f7f6aa --- /dev/null +++ b/core/src/test/resources/blackbox/maxicode-1/MODE2.txt @@ -0,0 +1 @@ +[)>0196123450000222111MODE2 \ No newline at end of file diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE3.png b/core/src/test/resources/blackbox/maxicode-1/MODE3.png new file mode 100644 index 000000000..007987185 Binary files /dev/null and b/core/src/test/resources/blackbox/maxicode-1/MODE3.png differ diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE3.txt b/core/src/test/resources/blackbox/maxicode-1/MODE3.txt new file mode 100644 index 000000000..08d77829b --- /dev/null +++ b/core/src/test/resources/blackbox/maxicode-1/MODE3.txt @@ -0,0 +1 @@ +[)>0196123450000222111MODE3 \ No newline at end of file diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE4.png b/core/src/test/resources/blackbox/maxicode-1/MODE4.png new file mode 100644 index 000000000..e4470f38c Binary files /dev/null and b/core/src/test/resources/blackbox/maxicode-1/MODE4.png differ diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE4.txt b/core/src/test/resources/blackbox/maxicode-1/MODE4.txt new file mode 100644 index 000000000..8224acc67 --- /dev/null +++ b/core/src/test/resources/blackbox/maxicode-1/MODE4.txt @@ -0,0 +1 @@ +[)>0196123450000222111MODE4 \ No newline at end of file diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE5.png b/core/src/test/resources/blackbox/maxicode-1/MODE5.png new file mode 100644 index 000000000..154594643 Binary files /dev/null and b/core/src/test/resources/blackbox/maxicode-1/MODE5.png differ diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE5.txt b/core/src/test/resources/blackbox/maxicode-1/MODE5.txt new file mode 100644 index 000000000..deeeba36e --- /dev/null +++ b/core/src/test/resources/blackbox/maxicode-1/MODE5.txt @@ -0,0 +1 @@ +[)>0196123450000222111MODE5 \ No newline at end of file diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE6.png b/core/src/test/resources/blackbox/maxicode-1/MODE6.png new file mode 100644 index 000000000..333a0f809 Binary files /dev/null and b/core/src/test/resources/blackbox/maxicode-1/MODE6.png differ diff --git a/core/src/test/resources/blackbox/maxicode-1/MODE6.txt b/core/src/test/resources/blackbox/maxicode-1/MODE6.txt new file mode 100644 index 000000000..f5e22c3d9 --- /dev/null +++ b/core/src/test/resources/blackbox/maxicode-1/MODE6.txt @@ -0,0 +1 @@ +[)>0196123450000222111MODE6 \ No newline at end of file