diff options
author | Simon Steiner <ssteiner@apache.org> | 2022-09-01 11:36:33 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2022-09-01 11:36:33 +0000 |
commit | 11d681d2bf92cbac970e57f4a47dd0de12a04ebd (patch) | |
tree | 97c39ebb8c7b08a30898fab007eeab872f4bfcaa | |
parent | 506bebfc1201acc1fa930673ae9b1cc8d98a54f9 (diff) | |
download | xmlgraphics-fop-11d681d2bf92cbac970e57f4a47dd0de12a04ebd.tar.gz xmlgraphics-fop-11d681d2bf92cbac970e57f4a47dd0de12a04ebd.zip |
FOP-3091: Fix test
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1903809 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java b/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java index 310fff26f..720289a73 100644 --- a/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java @@ -33,6 +33,8 @@ import org.apache.fop.afp.parser.MODCAParser; import org.apache.fop.afp.parser.UnparsedStructuredField; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.apps.FopFactory; +import org.apache.fop.util.bitmap.BitmapImageUtil; +import org.apache.fop.util.bitmap.DefaultMonochromeBitmapConverter; public class AFPRectanglePainterTestCase { @Test @@ -43,7 +45,11 @@ public class AFPRectanglePainterTestCase { bis.skip(59); Assert.assertEquals(bis.read(), 0x8E); //start bis.skip(20); - Assert.assertEquals(bis.read(), 170); //mask data + if (BitmapImageUtil.createDefaultMonochromeBitmapConverter() instanceof DefaultMonochromeBitmapConverter) { + Assert.assertEquals(bis.read(), 255); //mask data + } else { + Assert.assertEquals(bis.read(), 170); //mask data + } bis.skip(1299); Assert.assertEquals(bis.read(), 0x8F); //end bis.skip(89); |