You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/07/20 16:05:14 UTC

[pdfbox-jbig2] branch master updated: PDFBOX-4598: replace test checksums after verifying that the relevant data is the same by temporarly converting the raster into the old type

This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-jbig2.git


The following commit(s) were added to refs/heads/master by this push:
     new daa694f  PDFBOX-4598: replace test checksums after verifying that the relevant data is the same by temporarly converting the raster into the old type
daa694f is described below

commit daa694f3872e62c8cbb5607829288ec4cc8cdaac
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Sat Jul 20 18:04:59 2019 +0200

    PDFBOX-4598: replace test checksums after verifying that the relevant data is the same by temporarly converting the raster into the old type
---
 .../org/apache/pdfbox/jbig2/image/BitmapsChecksumTest.java   | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/pdfbox/jbig2/image/BitmapsChecksumTest.java b/src/test/java/org/apache/pdfbox/jbig2/image/BitmapsChecksumTest.java
index b7e5aee..edbfbe2 100644
--- a/src/test/java/org/apache/pdfbox/jbig2/image/BitmapsChecksumTest.java
+++ b/src/test/java/org/apache/pdfbox/jbig2/image/BitmapsChecksumTest.java
@@ -40,8 +40,6 @@ import org.apache.pdfbox.jbig2.Bitmap;
 import org.apache.pdfbox.jbig2.JBIG2DocumentFacade;
 import org.apache.pdfbox.jbig2.PreconfiguredImageReadParam;
 import org.apache.pdfbox.jbig2.err.JBIG2Exception;
-import org.apache.pdfbox.jbig2.image.Bitmaps;
-import org.apache.pdfbox.jbig2.image.FilterType;
 import org.apache.pdfbox.jbig2.io.DefaultInputStreamFactory;
 import org.apache.pdfbox.jbig2.io.InputStreamFactory;
 import org.junit.Test;
@@ -76,17 +74,17 @@ public class BitmapsChecksumTest
                         new PreconfiguredImageReadParam(new Dimension(600, 300)), FilterType.Bessel,
                         "-69-11478-721003586-100-72-85-1559101-118-24-94" },
                 { "target/images/042_1.jb2", 1, new PreconfiguredImageReadParam(2, 2, 0, 0),
-                        FilterType.Bessel, "-4979-94-68-125645751-2111712617-59-295" },
+                        FilterType.Bessel, "42-7327-48-10105-703710-571171181079448-70" },
                 { "target/images/042_1.jb2", 1, new PreconfiguredImageReadParam(2, 2, 0, 0),
-                        FilterType.Lanczos, "-4979-94-68-125645751-2111712617-59-295" },
+                        FilterType.Lanczos, "42-7327-48-10105-703710-571171181079448-70" },
                 { "target/images/042_1.jb2", 1, new PreconfiguredImageReadParam(3, 3, 1, 1),
-                        FilterType.Lanczos, "84-1069410599-9575-7934-1279-80-85127-18-128" },
+                        FilterType.Lanczos, "-68082-6815-41-95-124101-60-69-106-114-68-81-65" },
                 { "target/images/042_1.jb2", 1,
                         new PreconfiguredImageReadParam(new Rectangle(100, 100, 500, 500)),
-                        FilterType.Lanczos, "1245-23-127954634-1232173-109-5739-303-48" },
+                        FilterType.Lanczos, "15-92-12415-6-46-89-78-2070-59-4250-305893" },
                 { "target/images/042_1.jb2", 1,
                         new PreconfiguredImageReadParam(new Rectangle(500, 500, 2000, 2000)),
-                        FilterType.Lanczos, "-60-45-117-90-6596-11556-47-30-112-741138412082" },
+                        FilterType.Lanczos, "101-49-39-823-579062-4063-84914-9-75-4" },
                 { "target/images/042_1.jb2", 1,
                         new PreconfiguredImageReadParam(new Rectangle(500, 500, 2000, 2000),
                                 new Dimension(678, 931)),