summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java b/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
index 908c60350..35b3bc9b7 100644
--- a/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
+++ b/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
@@ -68,9 +68,8 @@ public class GradientTestCase {
svgGraphics2D.setGraphicContext(new GraphicContext());
svgGraphics2D.translate(100, 100);
svgGraphics2D.applyPaint(gradient, true);
- byte[] actual = out.toByteArray();
- byte[] expected = IOUtils.toByteArray(getClass().getResourceAsStream(expectedResourceName));
- assertEquals(new String(expected, "US-ASCII"), new String(actual, "US-ASCII"));
+ String expected = IOUtils.toString(getClass().getResourceAsStream(expectedResourceName));
+ assertEquals(expected.replace("\r", ""), out.toString());
}
}