diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2011-10-04 10:09:01 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2011-10-04 10:09:01 +0000 |
commit | 91c66d97428aa57c844ec58e1deb07a8ab745574 (patch) | |
tree | d6062f718053ad636c8f587d5d5f199e9d158252 /test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java | |
parent | 7d33c81a0a079336dd1ffcac97e4ee1dfba16c36 (diff) | |
download | xmlgraphics-fop-91c66d97428aa57c844ec58e1deb07a8ab745574.tar.gz xmlgraphics-fop-91c66d97428aa57c844ec58e1deb07a8ab745574.zip |
Bugzilla #51928: Upgraded all tests to JUnit 4
Patch by Mehdi Houshmand, applied with minor cosmetics and error fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1178747 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java')
-rw-r--r-- | test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java b/test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java index c127d82a5..f4c3617e3 100644 --- a/test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java +++ b/test/java/org/apache/fop/render/ps/ImageHandlingTestCase.java @@ -18,13 +18,16 @@ /* $Id$ */ package org.apache.fop.render.ps; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; - +import org.apache.fop.apps.FOUserAgent; +import org.apache.fop.render.intermediate.IFContext; import org.apache.xmlgraphics.ps.DSCConstants; import org.apache.xmlgraphics.ps.PSResource; import org.apache.xmlgraphics.ps.dsc.DSCException; @@ -33,9 +36,7 @@ import org.apache.xmlgraphics.ps.dsc.events.DSCCommentPage; import org.apache.xmlgraphics.ps.dsc.events.DSCCommentPages; import org.apache.xmlgraphics.ps.dsc.events.DSCCommentTitle; import org.apache.xmlgraphics.ps.dsc.events.DSCEvent; - -import org.apache.fop.apps.FOUserAgent; -import org.apache.fop.render.intermediate.IFContext; +import org.junit.Test; /** * Tests the image handling in PostScript output. @@ -46,6 +47,7 @@ public class ImageHandlingTestCase extends AbstractPostScriptTestCase { * Tests JPEG handling. * @throws Exception if an error occurs */ + @Test public void testJPEGImageLevel3() throws Exception { innerTestJPEGImage(3); } @@ -54,6 +56,7 @@ public class ImageHandlingTestCase extends AbstractPostScriptTestCase { * Tests JPEG handling. * @throws Exception if an error occurs */ + @Test public void testJPEGImageLevel2() throws Exception { innerTestJPEGImage(2); } |