Skip to content

Commit f411662

Browse files
committed
PDFBOX-5660: improve test coverage
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1927892 13f79535-47bb-0310-9956-ffa450edef68
1 parent 64f34c8 commit f411662

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFCloneUtilityTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ void testClonePDFWithCosArrayStream() throws IOException
6161
srcDoc.addPage(pdPage);
6262
new PDPageContentStream(srcDoc, pdPage, AppendMode.APPEND, true).close();
6363
new PDPageContentStream(srcDoc, pdPage, AppendMode.APPEND, true).close();
64-
COSDictionary clonedPageDictionary = new PDFCloneUtility(dstDoc).cloneForNewDocument(pdPage.getCOSObject());
64+
PDFCloneUtility cloner = new PDFCloneUtility(dstDoc);
65+
assertEquals(dstDoc, cloner.getDestination());
66+
COSDictionary clonedPageDictionary = (COSDictionary) cloner.cloneForNewDocument(pdPage.getCOSObject());
6567
PDPage clonedPage = new PDPage(clonedPageDictionary);
6668
Iterator<PDStream> contentStreams = clonedPage.getContentStreams();
6769
assertNotNull(contentStreams.next());

0 commit comments

Comments
 (0)