From: Matthias Reischenbacher Date: Wed, 10 Oct 2018 20:29:11 +0000 (+0000) Subject: FOP-2818: fix failing test X-Git-Tag: fop-2_4~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c00d547a3828783284e3ca81ce90f62f5313d4ca;p=xmlgraphics-fop.git FOP-2818: fix failing test git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1843507 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java b/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java index 19953d781..c5fc6593b 100644 --- a/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java @@ -108,13 +108,13 @@ public class PDFResourcesTestCase { PDFDocument pdfDoc = new PDFDocument(null); PDFResources res = new PDFResources(pdfDoc); PDFDictionary shadingDict = new PDFDictionary(); - shadingDict.put("Sh1-1718006973", new PDFReference("9 0")); + shadingDict.put("Sh1-1718006973", new PDFReference("9 0 R")); res.put("Shading", shadingDict); PDFDictionary patternDict = new PDFDictionary(); - patternDict.put("Pa1-1718006973", new PDFReference("10 0")); + patternDict.put("Pa1-1718006973", new PDFReference("10 0 R")); res.put("Pattern", patternDict); PDFDictionary colorSpaceDict = new PDFDictionary(); - colorSpaceDict.put("DefaultRGB", new PDFReference("11 0")); + colorSpaceDict.put("DefaultRGB", new PDFReference("11 0 R")); res.put("ColorSpace", colorSpaceDict); PDFResources resParent = new PDFResources(pdfDoc); res.setParentResources(resParent);