cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1180686 - /cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java
Date Sun, 09 Oct 2011 18:55:20 GMT
Author: anathaniel
Date: Sun Oct  9 18:55:20 2011
New Revision: 1180686

URL: http://svn.apache.org/viewvc?rev=1180686&view=rev
Log:
Correct rounding

Modified:
    cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java

Modified: cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java?rev=1180686&r1=1180685&r2=1180686&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java
Sun Oct  9 18:55:20 2011
@@ -188,7 +188,7 @@ public class SpringRESTControllerTest {
 
         httpServletRequest.setParameter("stringRequestParameter", String.valueOf(Math.random()));
         httpServletRequest.setParameter("alias-request-parameter", String.valueOf(Math.random()));
-        httpServletRequest.setParameter("intRequestParameter", String.valueOf((int) Math.random()
* 100));
+        httpServletRequest.setParameter("intRequestParameter", String.valueOf((int) (Math.random()
* 100)));
         httpServletRequest.setParameter("booleanRequestParameter", String.valueOf(Math.random()
< 0.5));
         httpServletRequest.setParameter("stringArrayRequestParameter", new String[] {String.valueOf(Math.random()),
                 String.valueOf(Math.random())});



Mime
View raw message