pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1553220 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/TestTextToPdf.java
Date Mon, 23 Dec 2013 21:41:20 GMT
Author: lehmi
Date: Mon Dec 23 21:41:20 2013
New Revision: 1553220

URL: http://svn.apache.org/r1553220
Log:
PDFBOX-1808: close the PDF not until the end of the test

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/TestTextToPdf.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/TestTextToPdf.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/TestTextToPdf.java?rev=1553220&r1=1553219&r2=1553220&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/TestTextToPdf.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/TestTextToPdf.java Mon Dec 23 21:41:20
2013
@@ -54,7 +54,6 @@ public class TestTextToPdf extends TestC
         StringReader reader = new StringReader("");
         PDDocument pdfDoc = pdfCreator.createPDFFromText(reader);
         reader.close();
-        pdfDoc.close();
 
         // In order for the PDF document to be openable by Adobe Reader, it needs
         // to have some pages in it. So we'll check that.
@@ -62,6 +61,7 @@ public class TestTextToPdf extends TestC
         List allPages = docCatalog.getAllPages();
         assertNotNull("All Pages was unexpectedly null.", allPages);
         assertEquals("Wrong number of pages.", 1, allPages.size());
+        pdfDoc.close();
     }
 
     /**



Mime
View raw message