pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1678079 - in /pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b: AbstractTestAction.java TestUriAction.java
Date Wed, 06 May 2015 19:44:08 GMT
Author: tilman
Date: Wed May  6 19:44:08 2015
New Revision: 1678079

URL: http://svn.apache.org/r1678079
Log:
PDFBOX-2783: Use getCOSObject() instead of getDictionary()

Modified:
    pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java
    pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/TestUriAction.java

Modified: pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java?rev=1678079&r1=1678078&r2=1678079&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java
(original)
+++ pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/AbstractTestAction.java
Wed May  6 19:44:08 2015
@@ -90,7 +90,7 @@ public abstract class AbstractTestAction
      */
     protected void valid(PDAction action, boolean valid, String expectedCode) throws Exception
     {
-        valid(action.getCOSDictionary(), valid, expectedCode);
+        valid(action.getCOSObject(), valid, expectedCode);
     }
 
     protected void valid(COSDictionary action, boolean valid, String expectedCode) throws
Exception

Modified: pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/TestUriAction.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/TestUriAction.java?rev=1678079&r1=1678078&r2=1678079&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/TestUriAction.java
(original)
+++ pdfbox/trunk/preflight/src/test/java/org/apache/pdfbox/preflight/action/pdfa1b/TestUriAction.java
Wed May  6 19:44:08 2015
@@ -58,7 +58,7 @@ public class TestUriAction extends Abstr
     public void testInvalidURI() throws Exception
     {
         PDActionURI action = new PDActionURI();
-        action.getCOSDictionary().setBoolean(COSName.URI, true);
+        action.getCOSObject().setBoolean(COSName.URI, true);
         valid(action, false, PreflightConstants.ERROR_ACTION_INVALID_TYPE);
     }
 



Mime
View raw message