You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2019/06/30 14:11:59 UTC

svn commit: r1862352 - in /pdfbox/branches/issue4569: ./ preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java

Author: lehmi
Date: Sun Jun 30 14:11:59 2019
New Revision: 1862352

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

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

Propchange: pdfbox/branches/issue4569/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sun Jun 30 14:11:59 2019
@@ -1,4 +1,4 @@
 /pdfbox/branches/2.0:1760418,1761484,1762133,1763609,1779822,1780783,1780789,1782684,1784450,1792784,1795704,1795712,1799081-1799082,1814046,1814285,1814459,1824914,1825811,1825820,1825912,1844477,1844516,1844519,1844567,1850577,1857953,1858696,1858698,1860825
 /pdfbox/branches/no-awt:1618517-1621410
 /pdfbox/no-awt:1618514-1618516
-/pdfbox/trunk:1861927,1861933,1862347
+/pdfbox/trunk:1861927,1861933,1862347,1862350

Modified: pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java?rev=1862352&r1=1862351&r2=1862352&view=diff
==============================================================================
--- pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java (original)
+++ pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java Sun Jun 30 14:11:59 2019
@@ -19,8 +19,6 @@ import java.io.File;
 import java.io.IOException;
 
 import org.apache.pdfbox.preflight.parser.PreflightParser;
-import org.apache.pdfbox.preflight.utils.DataSource;
-import org.apache.pdfbox.preflight.utils.FileDataSource;
 
 import org.junit.Assert;
 import org.junit.Test;
@@ -39,8 +37,8 @@ public class TestPDFBox3743
     @Test
     public void testPDFBox3743() throws IOException
     {
-        DataSource ds = new FileDataSource(new File("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();
         ValidationResult result;
         try (PreflightDocument document = parser.getPreflightDocument())