diff options
author | Jeremias Maerki <jeremias@apache.org> | 2011-02-04 10:02:01 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2011-02-04 10:02:01 +0000 |
commit | 9adfae3eb6782ce8b240045f4a0f2702b09c30b6 (patch) | |
tree | e276afee1be3adb724fad864070908e6d58499be /test | |
parent | 629e1e66b37ff2e85b1d2907cef4c9b18e3c709c (diff) | |
download | xmlgraphics-fop-9adfae3eb6782ce8b240045f4a0f2702b09c30b6.tar.gz xmlgraphics-fop-9adfae3eb6782ce8b240045f4a0f2702b09c30b6.zip |
Fix compile error when JAI is not around.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/java/org/apache/fop/util/BitmapImageUtilTestCase.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java b/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java index cf8fdce24..92a3a15bd 100644 --- a/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java +++ b/test/java/org/apache/fop/util/BitmapImageUtilTestCase.java @@ -38,7 +38,6 @@ import org.apache.xmlgraphics.util.WriterOutputStream; import org.apache.xmlgraphics.util.io.ASCIIHexOutputStream; import org.apache.fop.util.bitmap.BitmapImageUtil; -import org.apache.fop.util.bitmap.JAIMonochromeBitmapConverter; import org.apache.fop.util.bitmap.MonochromeBitmapConverter; /** @@ -110,7 +109,7 @@ public class BitmapImageUtilTestCase extends TestCase { private boolean isJAIAvailable() { MonochromeBitmapConverter converter = BitmapImageUtil.createDefaultMonochromeBitmapConverter(); - return (converter instanceof JAIMonochromeBitmapConverter); + return converter.getClass().getName().contains("JAI"); } private void saveAsPNG(RenderedImage img, String name) throws IOException { |