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:10:30 UTC

svn commit: r1657272 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java

Author: tilman
Date: Wed Feb  4 15:10:29 2015
New Revision: 1657272

URL: http://svn.apache.org/r1657272
Log:
PDFBOX-988, PDFBOX-1019, PDFBOX-2383: remove test with copyrighted document, fix typo in other test

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

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java?rev=1657272&r1=1657271&r2=1657272&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java Wed Feb  4 15:10:29 2015
@@ -19,49 +19,20 @@
 
 package org.apache.pdfbox.pdmodel.font;
 
+import junit.framework.TestCase;
 import org.apache.pdfbox.pdmodel.PDDocument;
 import org.apache.pdfbox.rendering.PDFRenderer;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
 
 /**
  * 
  * @author adam
  */
-public class PDFontTest
+public class PDFontTest extends TestCase
 {
 
-    public PDFontTest()
-    {
-    }
-
-    @BeforeClass
-    public static void setUpClass() throws Exception
-    {
-    }
-
-    @AfterClass
-    public static void tearDownClass() throws Exception
-    {
-    }
-
-    @Before
-    public void setUp()
-    {
-    }
-
-    @After
-    public void tearDown()
-    {
-    }
-
     /**
-     * Test of the error reported in PDFBox-998
+     * Test of the error reported in PDFBox-988
      */
-    @Test
     public void testPDFBox988() throws Exception
     {
         PDDocument doc = null;
@@ -71,29 +42,6 @@ public class PDFontTest
             PDFRenderer renderer = new PDFRenderer(doc);
             renderer.renderImage(0);
             // the allegation is that renderImage() will crash the JVM or hang
-        }
-        finally
-        {
-            if (doc != null)
-            {
-                doc.close();
-            }
-        }
-    }
-
-    /**
-     * Test of the error reported in PDFBox-1019
-     */
-    @Test
-    public void testPDFBox1019() throws Exception
-    {
-        PDDocument doc = null;
-        try
-        {
-            doc = PDDocument.load(PDFontTest.class.getResourceAsStream("256.pdf"));
-            PDFRenderer renderer = new PDFRenderer(doc);
-            renderer.renderImage(0);
-            // the allegation is that renderImage() will crash the JVM or hang
         }
         finally
         {