pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1651199 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestCheckBox.java
Date Mon, 12 Jan 2015 21:15:29 GMT
Author: msahyoun
Date: Mon Jan 12 21:15:29 2015
New Revision: 1651199

URL: http://svn.apache.org/r1651199
Log:
PDFBOX-2516 enhance test case

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestCheckBox.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestCheckBox.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestCheckBox.java?rev=1651199&r1=1651198&r2=1651199&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestCheckBox.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestCheckBox.java
Mon Jan 12 21:15:29 2015
@@ -81,6 +81,12 @@ public class TestCheckBox extends TestCa
             PDAcroForm form = new PDAcroForm( doc );
             PDCheckbox checkBox = new PDCheckbox(form);
             
+            // test that there are no nulls returned for an empty field
+            // only specific methods are tested here
+            assertNotNull(checkBox.getDefaultValue());
+            assertNotNull(checkBox.getOptions());
+            assertNotNull(checkBox.getValue());
+            
             // Test setting/getting option values - the dictionaries Opt entry
             List<String> options = new ArrayList<String>();
             options.add("Value01");



Mime
View raw message