pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1862351 - in /pdfbox/branches/issue45: ./ preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
Date Sun, 30 Jun 2019 14:11:32 GMT
Author: lehmi
Date: Sun Jun 30 14:11:32 2019
New Revision: 1862351

URL: http://svn.apache.org/viewvc?rev=1862351&view=rev
Log:
PDFBOX-4340: use File instead of DataSource

Modified:
    pdfbox/branches/issue45/   (props changed)
    pdfbox/branches/issue45/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java

Propchange: pdfbox/branches/issue45/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sun Jun 30 14:11:32 2019
@@ -2,4 +2,4 @@
 /pdfbox/branches/issue4569:1861285,1861586
 /pdfbox/branches/no-awt:1618517-1621410
 /pdfbox/no-awt:1618514-1618516
-/pdfbox/trunk:1736223,1736227,1736615,1737043,1737130,1737599-1737600,1738755,1740160,1742437,1742442,1743248,1745595,1745606,1745772,1745774,1745776,1745779,1746032,1746151,1749162,1749165,1749432,1766088,1766213,1767585,1768061,1770985,1770988,1772528,1778172,1782679,1786586,1786603,1787546,1789414,1790745,1794073,1794090,1794620,1794753,1794859,1794891,1800566,1812426,1814226,1826836,1859501,1859510,1859664,1859686,1861927,1861933,1862347
+/pdfbox/trunk:1736223,1736227,1736615,1737043,1737130,1737599-1737600,1738755,1740160,1742437,1742442,1743248,1745595,1745606,1745772,1745774,1745776,1745779,1746032,1746151,1749162,1749165,1749432,1766088,1766213,1767585,1768061,1770985,1770988,1772528,1778172,1782679,1786586,1786603,1787546,1789414,1790745,1794073,1794090,1794620,1794753,1794859,1794891,1800566,1812426,1814226,1826836,1859501,1859510,1859664,1859686,1861927,1861933,1862347,1862350

Modified: pdfbox/branches/issue45/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java?rev=1862351&r1=1862350&r2=1862351&view=diff
==============================================================================
--- pdfbox/branches/issue45/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
(original)
+++ pdfbox/branches/issue45/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
Sun Jun 30 14:11:32 2019
@@ -15,9 +15,8 @@
  */
 package org.apache.pdfbox.preflight;
 
+import java.io.File;
 import java.io.IOException;
-import javax.activation.DataSource;
-import javax.activation.FileDataSource;
 
 import org.apache.pdfbox.preflight.parser.PreflightParser;
 
@@ -38,8 +37,8 @@ public class TestPDFBox3743
     @Test
     public void testPDFBox3743() throws IOException
     {
-        DataSource ds = new FileDataSource("src/test/resources/PDFBOX-3743.pdf");
-        PreflightParser parser = new PreflightParser(ds);
+        PreflightParser parser = new PreflightParser(
+                new File("src/test/resources/PDFBOX-3743.pdf"));
         parser.parse();
         PreflightDocument document = parser.getPreflightDocument();
         document.validate();



Mime
View raw message