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 2019/07/03 19:30:31 UTC
svn commit: r1862520 - in
/pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight:
TestPDFBox3741.java TestPDFBox3743.java
Author: tilman
Date: Wed Jul 3 19:30:31 2019
New Revision: 1862520
URL: http://svn.apache.org/viewvc?rev=1862520&view=rev
Log:
PDFBOX-4071: rename class to correct issue
Added:
pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3741.java
- copied, changed from r1862506, pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
Removed:
pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java
Copied: pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3741.java (from r1862506, 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/TestPDFBox3741.java?p2=pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3741.java&p1=pdfbox/branches/issue4569/preflight/src/test/java/org/apache/pdfbox/preflight/TestPDFBox3743.java&r1=1862506&r2=1862520&rev=1862520&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/TestPDFBox3741.java Wed Jul 3 19:30:31 2019
@@ -19,6 +19,8 @@ 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;
@@ -37,8 +39,8 @@ public class TestPDFBox3743
@Test
public void testPDFBox3743() throws IOException
{
- PreflightParser parser = new PreflightParser(
- new File("src/test/resources/PDFBOX-3743.pdf"));
+ DataSource ds = new FileDataSource(new File("src/test/resources/PDFBOX-3743.pdf"));
+ PreflightParser parser = new PreflightParser(ds);
parser.parse();
ValidationResult result;
try (PreflightDocument document = parser.getPreflightDocument())