pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1657289 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java
Date Wed, 04 Feb 2015 15:41:55 GMT
Author: tilman
Date: Wed Feb  4 15:41:55 2015
New Revision: 1657289

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

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

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java?rev=1657289&r1=1657288&r2=1657289&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentCatalog.java
Wed Feb  4 15:41:55 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



Mime
View raw message