You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2011/10/09 20:55:20 UTC

svn commit: r1180686 - /cocoon/cocoon3/trunk/cocoon-rest/src/test/java/org/apache/cocoon/rest/controller/SpringRESTControllerTest.java

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())});