pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1601288 - /pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestSynchronizedMetadataValidation.java
Date Mon, 09 Jun 2014 00:40:33 GMT
Author: tilman
Date: Mon Jun  9 00:40:32 2014
New Revision: 1601288

URL: http://svn.apache.org/r1601288
Log:
PDFBOX-1600: exception is not thrown in no-args constructor

Modified:
    pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestSynchronizedMetadataValidation.java

Modified: pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestSynchronizedMetadataValidation.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestSynchronizedMetadataValidation.java?rev=1601288&r1=1601287&r2=1601288&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestSynchronizedMetadataValidation.java
(original)
+++ pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/metadata/TestSynchronizedMetadataValidation.java
Mon Jun  9 00:40:32 2014
@@ -68,18 +68,9 @@ public class TestSynchronizedMetadataVal
     @Before
     public void initNewDocumentInformation() throws Exception
     {
-
-        try
-        {
-            doc = new PDDocument();
-            dico = doc.getDocumentInformation();
-            metadata = XMPMetadata.createXMPMetadata();
-        }
-        catch (IOException e)
-        {
-            throw new Exception("Failed to create temporary test PDF/XMP Document");
-        }
-
+        doc = new PDDocument();
+        dico = doc.getDocumentInformation();
+        metadata = XMPMetadata.createXMPMetadata();
     }
 
     /**



Mime
View raw message