pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1667887 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTest.java
Date Thu, 19 Mar 2015 21:52:14 GMT
Author: msahyoun
Date: Thu Mar 19 21:52:14 2015
New Revision: 1667887

URL: http://svn.apache.org/r1667887
Log:
PDFBOX-2717 enhancement unit test to use member variable

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTest.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTest.java?rev=1667887&r1=1667886&r2=1667887&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTest.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationTest.java
Thu Mar 19 21:52:14 2015
@@ -36,7 +36,7 @@ public class PDAnnotationTest
     {
         PDAnnotation annotation = new PDAnnotationWidget();
         assertEquals(COSName.ANNOT, annotation.getDictionary().getItem(COSName.TYPE));
-        assertEquals(COSName.getPDFName("Widget"), annotation.getDictionary().getItem(COSName.SUBTYPE));
+        assertEquals(PDAnnotationWidget.SUB_TYPE, annotation.getDictionary().getNameAsString(COSName.SUBTYPE));
     }
 
     @Test
@@ -47,7 +47,7 @@ public class PDAnnotationTest
         PDTextField textField = new PDTextField(acroForm);
         PDAnnotation annotation = textField.getWidget();
         assertEquals(COSName.ANNOT, annotation.getDictionary().getItem(COSName.TYPE));
-        assertEquals(COSName.getPDFName("Widget"), annotation.getDictionary().getItem(COSName.SUBTYPE));
+        assertEquals(PDAnnotationWidget.SUB_TYPE, annotation.getDictionary().getNameAsString(COSName.SUBTYPE));
     }
 
 }



Mime
View raw message