pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1679655 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestListBox.java
Date Fri, 15 May 2015 22:59:35 GMT
Author: jahewson
Date: Fri May 15 22:59:35 2015
New Revision: 1679655

URL: http://svn.apache.org/r1679655
Log:
PDFBOX-2459: Introduce type safety for setValue()

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

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestListBox.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestListBox.java?rev=1679655&r1=1679654&r2=1679655&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestListBox.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/TestListBox.java
Fri May 15 22:59:35 2015
@@ -140,7 +140,7 @@ public class TestListBox extends TestCas
             // without multiselect setting multiple items shall fail
             try
             {
-                choice.setValues(exportValues);
+                choice.setValue(exportValues);
                 fail( "Missing IllegalArgumentException" );
             }
             catch( IllegalArgumentException e )
@@ -151,7 +151,7 @@ public class TestListBox extends TestCas
             // ensure that the choice field does allow multiple selections
             choice.setMultiSelect(true);
             // now this call must suceed
-            choice.setValues(exportValues);
+            choice.setValue(exportValues);
             
             // assert that the option values have been correctly set
             COSArray valueItems = (COSArray) choice.getCOSObject().getItem(COSName.V);



Mime
View raw message