pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1634926 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestPublicKeyEncryption.java
Date Tue, 28 Oct 2014 17:32:58 GMT
Author: tilman
Date: Tue Oct 28 17:32:58 2014
New Revision: 1634926

URL: http://svn.apache.org/r1634926
Log:
PDFBOX-2460: put back exception handler

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestPublicKeyEncryption.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestPublicKeyEncryption.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestPublicKeyEncryption.java?rev=1634926&r1=1634925&r2=1634926&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestPublicKeyEncryption.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestPublicKeyEncryption.java
Tue Oct 28 17:32:58 2014
@@ -59,6 +59,7 @@ public class TestPublicKeyEncryption ext
     /**
      * {@inheritDoc}
      */
+    @Override
     protected void setUp() throws Exception 
     {
         permission1 = new AccessPermission();
@@ -102,6 +103,7 @@ public class TestPublicKeyEncryption ext
     /**
      * {@inheritDoc}
      */
+    @Override
     protected void tearDown() throws Exception 
     {
         document.close();
@@ -126,6 +128,10 @@ public class TestPublicKeyEncryption ext
             encrypted.openProtection(decryption2);
             fail("No exception when using an incorrect decryption key");
         }
+        catch (IOException ex)
+        {
+            // do nothing
+        }
         finally 
         {
             encrypted.close();



Mime
View raw message