Commits

Edi Weissmann committed dd0c6bf

add integration test that verifies encrypted files read across all pdf implementations (itext, pdfbox, icepdf) to rule out possible 3rd party encryption libraries clashing under the same sejda-console lib

Comments (0)

Files changed (2)

sejda-console/src/test/java/org/sejda/cli/EncryptionIntegrationTest.java

+/*
+ * Created on Oct 10, 2011
+ * Copyright 2010 by Eduard Weissmann (edi.weissmann@gmail.com).
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); 
+ * you may not use this file except in compliance with the License. 
+ * You may obtain a copy of the License at 
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License. 
+ */
+package org.sejda.cli;
+
+import org.junit.Test;
+
+/**
+ * Tsest encrypted files across all pdf implementations (itext, pdfbox and icepdf) - due to collisions between the libraries that each pdf implementation uses for encryption, there
+ * might be different behaviour at runtime
+ * 
+ * @author Eduard Weissmann
+ * 
+ */
+public class EncryptionIntegrationTest extends AbstractTestSuite {
+
+    @Test
+    public void itextReadEncryptedFile() {
+        // TODO
+    }
+
+    @Test
+    public void icepdfReadEncryptedFile() {
+        // TODO
+    }
+
+    @Test
+    public void pdfboxReadEncryptedFile() {
+        // TODO
+    }
+}

sejda-console/src/test/java/org/sejda/cli/ExampleUsageIntegrationTest.java

  * @author Eduard Weissmann
  * 
  */
-// TODO: test encrypted files across all pdf implementations (itext, pdfbox and icepdf) - due to collisions between the libraries that each pdf implementation uses for encryption,
-// there might be different behaviour at runtime
 public class ExampleUsageIntegrationTest extends AbstractTaskTraitTest {
 
     public ExampleUsageIntegrationTest(TestableTask testableTask) {