click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r991484 - /click/trunk/click/extras/test/org/apache/click/extras/control/DoubleFieldTest.java
Date Wed, 01 Sep 2010 09:13:34 GMT
Author: sabob
Date: Wed Sep  1 09:13:34 2010
New Revision: 991484

URL: http://svn.apache.org/viewvc?rev=991484&view=rev
Log:
cleanup

Modified:
    click/trunk/click/extras/test/org/apache/click/extras/control/DoubleFieldTest.java

Modified: click/trunk/click/extras/test/org/apache/click/extras/control/DoubleFieldTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/test/org/apache/click/extras/control/DoubleFieldTest.java?rev=991484&r1=991483&r2=991484&view=diff
==============================================================================
--- click/trunk/click/extras/test/org/apache/click/extras/control/DoubleFieldTest.java (original)
+++ click/trunk/click/extras/test/org/apache/click/extras/control/DoubleFieldTest.java Wed
Sep  1 09:13:34 2010
@@ -180,22 +180,22 @@ public class DoubleFieldTest extends Tes
         
         Form form = new Form("form");
 
-        DoubleField field = new DoubleField("numfield");
-        form.add(field);
-        
-        field.setValue("0.1");
-        
+        DoubleField decimalField = new DoubleField("decimalField");
+        String decimalValue = "0.1";
+        decimalField.setValue(decimalValue);
+        form.add(decimalField);
+
         MyObj obj = new MyObj(); 
         form.copyTo(obj);
 
-        assertEquals("0.1", obj.numfield.toString());
+        assertEquals(decimalValue, obj.decimalField.toString());
     }
     
     public static class MyObj {
-        public BigDecimal numfield;
+        public BigDecimal decimalField;
         
-        public void setNumfield(BigDecimal value) {
-            this.numfield = value;
+        public void setDecimalField(BigDecimal value) {
+            this.decimalField = value;
         }
     }
 }



Mime
View raw message