File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
pdfbox/src/test/java/org/apache/pdfbox/multipdf Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,13 @@ void testLegacyModeMerge() throws IOException
6565 File toBeMerged = new File (IN_DIR ,"AcroFormForMerge.pdf" );
6666 File pdfOutput = new File (OUT_DIR ,"PDFBoxLegacyMerge-SameMerged.pdf" );
6767 merger .setDestinationFileName (pdfOutput .getAbsolutePath ());
68+ assertEquals (pdfOutput .getAbsolutePath (), merger .getDestinationFileName ());
6869 merger .addSource (toBeMerged );
69- merger .addSource (toBeMerged );
70+ merger .addSource (toBeMerged . getAbsolutePath () );
7071 merger .mergeDocuments (null );
7172 merger .setAcroFormMergeMode (AcroFormMergeMode .PDFBOX_LEGACY_MODE );
72-
73+ assertEquals (AcroFormMergeMode .PDFBOX_LEGACY_MODE , merger .getAcroFormMergeMode ());
74+
7375 try (PDDocument compliantDocument = Loader
7476 .loadPDF (new File (IN_DIR , "PDFBoxLegacyMerge-SameMerged.pdf" ));
7577 PDDocument toBeCompared = Loader
You can’t perform that action at this time.
0 commit comments