click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r917500 - /click/trunk/click/extras/test/org/apache/click/extras/control/NumberFieldTest.java
Date Mon, 01 Mar 2010 12:38:48 GMT
Author: sabob
Date: Mon Mar  1 12:38:48 2010
New Revision: 917500

URL: http://svn.apache.org/viewvc?rev=917500&view=rev
Log:
refactored test to use parameter instead of getRequestValue

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

Modified: click/trunk/click/extras/test/org/apache/click/extras/control/NumberFieldTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/test/org/apache/click/extras/control/NumberFieldTest.java?rev=917500&r1=917499&r2=917500&view=diff
==============================================================================
--- click/trunk/click/extras/test/org/apache/click/extras/control/NumberFieldTest.java (original)
+++ click/trunk/click/extras/test/org/apache/click/extras/control/NumberFieldTest.java Mon
Mar  1 12:38:48 2010
@@ -139,13 +139,13 @@
         
         assertTrue(engF.onProcess());
         assertEquals("12.30",engF.getValue());
-        assertEquals("12.3", engF.getRequestValue());
+        assertEquals("12.3", req.getParameter(engF.getName()));
         
         params.put("en", "some value");
         assertTrue(engF.onProcess());
         assertEquals("some value", engF.getValue());
         assertNull(engF.getNumber());
-        assertEquals("some value", engF.getRequestValue());
+        assertEquals("some value", req.getParameter(engF.getName()));
     }
     
     public void testValidate() {



Mime
View raw message