pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1759638 - /pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java
Date Wed, 07 Sep 2016 16:40:04 GMT
Author: tilman
Date: Wed Sep  7 16:40:04 2016
New Revision: 1759638

URL: http://svn.apache.org/viewvc?rev=1759638&view=rev
Log:
PDFBOX-3481: remove test that doesn't work before JDK7, as pointed out by Petras

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

Modified: pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java?rev=1759638&r1=1759637&r2=1759638&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java
Wed Sep  7 16:40:04 2016
@@ -238,27 +238,4 @@ public class TestPDDocument extends Test
         boolean deleted = f.delete();
         assertTrue("delete good file failed after successful load() and close()", deleted);
     }
-
-    /**
-     * PDFBOX-3481: Test whether XRef generation results in unusable PDFs if Arab numbering
is
-     * default.
-     */
-    public void testSaveArabicLocale() throws IOException, COSVisitorException
-    {
-        Locale defaultLocale = Locale.getDefault();
-        Locale arabicLocale = new Locale.Builder().setLanguageTag("ar-EG-u-nu-arab").build();
-        Locale.setDefault(arabicLocale);
-
-        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-
-        PDDocument doc = new PDDocument();
-        doc.addPage(new PDPage());
-        doc.save(baos);
-        doc.close();
-
-        PDDocument.load(new ByteArrayInputStream(baos.toByteArray())).close();
-        PDDocument.loadNonSeq(new ByteArrayInputStream(baos.toByteArray()), null).close();
-
-        Locale.setDefault(defaultLocale);
-    }
 }



Mime
View raw message