pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1639766 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
Date Fri, 14 Nov 2014 19:48:44 GMT
Author: tilman
Date: Fri Nov 14 19:48:43 2014
New Revision: 1639766

URL: http://svn.apache.org/r1639766
Log:
PDFBOX-2456: forgot four asserts

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

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java?rev=1639766&r1=1639765&r2=1639766&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
Fri Nov 14 19:48:43 2014
@@ -159,6 +159,7 @@ public class TestSymmetricKeyEncryption 
         }
         catch (IOException ex)
         {
+            assertEquals("Cannot decrypt PDF, the password is incorrect", ex.getMessage());
         }
         try
         {
@@ -167,6 +168,7 @@ public class TestSymmetricKeyEncryption 
         }
         catch (IOException ex)
         {
+            assertEquals("Cannot decrypt PDF, the password is incorrect", ex.getMessage());
         }
 
         inputFileAsByteArray = getFileResourceAsByteArray("PasswordSample-256bit.pdf");
@@ -181,6 +183,7 @@ public class TestSymmetricKeyEncryption 
         }
         catch (IOException ex)
         {
+            assertEquals("Cannot decrypt PDF, the password is incorrect", ex.getMessage());
         }
         try
         {
@@ -189,6 +192,7 @@ public class TestSymmetricKeyEncryption 
         }
         catch (IOException ex)
         {
+            assertEquals("Cannot decrypt PDF, the password is incorrect", ex.getMessage());
         }
     }
 



Mime
View raw message