]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2818: fix failing test
authorMatthias Reischenbacher <matthias@apache.org>
Wed, 10 Oct 2018 20:29:11 +0000 (20:29 +0000)
committerMatthias Reischenbacher <matthias@apache.org>
Wed, 10 Oct 2018 20:29:11 +0000 (20:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1843507 13f79535-47bb-0310-9956-ffa450edef68

fop-core/src/test/java/org/apache/fop/pdf/PDFResourcesTestCase.java

index 19953d781db6c3ff83b928f45b2629599b624e4f..c5fc6593b650153b58204ab78b26b9c927664b75 100644 (file)
@@ -108,13 +108,13 @@ public class PDFResourcesTestCase {
         PDFDocument pdfDoc = new PDFDocument(null);\r
         PDFResources res = new PDFResources(pdfDoc);\r
         PDFDictionary shadingDict = new PDFDictionary();\r
-        shadingDict.put("Sh1-1718006973", new PDFReference("9 0"));\r
+        shadingDict.put("Sh1-1718006973", new PDFReference("9 0 R"));\r
         res.put("Shading", shadingDict);\r
         PDFDictionary patternDict = new PDFDictionary();\r
-        patternDict.put("Pa1-1718006973", new PDFReference("10 0"));\r
+        patternDict.put("Pa1-1718006973", new PDFReference("10 0 R"));\r
         res.put("Pattern", patternDict);\r
         PDFDictionary colorSpaceDict = new PDFDictionary();\r
-        colorSpaceDict.put("DefaultRGB", new PDFReference("11 0"));\r
+        colorSpaceDict.put("DefaultRGB", new PDFReference("11 0 R"));\r
         res.put("ColorSpace", colorSpaceDict);\r
         PDFResources resParent = new PDFResources(pdfDoc);\r
         res.setParentResources(resParent);\r