You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/02/04 16:43:34 UTC

svn commit: r1657293 - /pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java

Author: tilman
Date: Wed Feb  4 15:43:33 2015
New Revision: 1657293

URL: http://svn.apache.org/r1657293
Log:
PDFBOX-2383: remove test with copyrighted document page_label.pdf

Modified:
    pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java

Modified: pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java?rev=1657293&r1=1657292&r2=1657293&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java Wed Feb  4 15:43:33 2015
@@ -52,26 +52,6 @@ public class TestPDDocumentCatalog exten
 
     /**
      * Test case for
-     * <a href="https://issues.apache.org/jira/browse/PDFBOX-900"
-     *   >PDFBOX-900</a> - Handle malformed PDFs
-     */
-    public void testLabelsOnMalformedPdf() throws Exception {
-        PDDocument doc = null;
-        try {
-            doc = PDDocument.load(TestPDDocumentCatalog.class.getResourceAsStream("page_label.pdf"));
-            PDDocumentCatalog cat = doc.getDocumentCatalog();
-            // getLabelsByPageIndices() should not throw an exception
-            cat.getPageLabels().getLabelsByPageIndices();
-        } catch(Exception e) {
-            fail("Threw exception!");
-        } finally {
-            if(doc != null)
-                doc.close();
-        }
-    }
-
-    /**
-     * Test case for
      * <a href="https://issues.apache.org/jira/browse/PDFBOX-911"
      *   >PDFBOX-911</a> - Method PDDocument.getNumberOfPages() returns wrong
      * number of pages