Author: ssteiner
Date: Thu Sep  1 11:36:33 2022
New Revision: 1903809

URL: http://svn.apache.org/viewvc?rev=1903809&view=rev
Log:
FOP-3091: Fix test

Modified:
    
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java

Modified: 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java?rev=1903809&r1=1903808&r2=1903809&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java
 (original)
+++ 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/afp/AFPRectanglePainterTestCase.java
 Thu Sep  1 11:36:33 2022
@@ -33,6 +33,8 @@ import org.apache.fop.afp.parser.MODCAPa
 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);



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-h...@xmlgraphics.apache.org

Reply via email to