You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/04/11 22:17:38 UTC

svn commit: r764247 - /incubator/click/trunk/click/framework/test/org/apache/click/util/ContainerUtilsTest.java

Author: sabob
Date: Sat Apr 11 20:17:37 2009
New Revision: 764247

URL: http://svn.apache.org/viewvc?rev=764247&view=rev
Log:
update test

Modified:
    incubator/click/trunk/click/framework/test/org/apache/click/util/ContainerUtilsTest.java

Modified: incubator/click/trunk/click/framework/test/org/apache/click/util/ContainerUtilsTest.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/test/org/apache/click/util/ContainerUtilsTest.java?rev=764247&r1=764246&r2=764247&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/test/org/apache/click/util/ContainerUtilsTest.java (original)
+++ incubator/click/trunk/click/framework/test/org/apache/click/util/ContainerUtilsTest.java Sat Apr 11 20:17:37 2009
@@ -22,12 +22,10 @@
 import junit.framework.TestCase;
 import org.apache.click.MockContext;
 import org.apache.click.control.Button;
-import org.apache.click.control.Field;
 import org.apache.click.control.FieldSet;
 import org.apache.click.control.Form;
 import org.apache.click.control.HiddenField;
 import org.apache.click.control.Label;
-import org.apache.click.control.Panel;
 import org.apache.click.control.TextField;
 
 /**
@@ -94,10 +92,14 @@
         // Process form to bind request parameter to field
         form.onProcess();
 
+        // Assert that the bound priceField value is equal to price
+        assertEquals(price, priceField.getValue());
+
         Car car = new Car();
         form.copyTo(car);
 
-        assertEquals(price, priceField.getValue());
+        // Assert that the copied part price value is equal to the price
+        assertEquals(price, Double.toString(car.getPart().getPrice()));
     }
 
     /**