Author: adrianc
Date: Mon Mar  5 20:21:19 2012
New Revision: 1297214

URL: http://svn.apache.org/viewvc?rev=1297214&view=rev
Log:
Fixed Groovy test script. String constants were being returned as 
org.codehaus.groovy.runtime.GStringImpl instead of java.lang.String.

Modified:
    
ofbiz/trunk/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy

Modified: 
ofbiz/trunk/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy?rev=1297214&r1=1297213&r2=1297214&view=diff
==============================================================================
--- 
ofbiz/trunk/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy 
(original)
+++ 
ofbiz/trunk/framework/common/script/org/ofbiz/common/GroovyServiceTest.groovy 
Mon Mar  5 20:21:19 2012
@@ -23,13 +23,14 @@ import org.ofbiz.base.util.Debug;
 Debug.logInfo("-=-=-=- TEST GROOVY SERVICE -=-=-=-", "");
 result = ServiceUtil.returnSuccess();
 if (context.message) {
-    message = context.message;
-    result.successMessage = "Got message [$message] and finished fine";
+    String message = context.message;
+    result.successMessage = (String) "Got message [$message] and finished 
fine";
     result.result = message;
     Debug.logInfo("----- Message is: $message -----", "");
 } else {
-    result.successMessage = "Got no message but finished fine anyway";
-    result.result = "[no message received]";
+    result.successMessage = (String) "Got no message but finished fine anyway";
+    result.result = (String) "[no message received]";
+    Debug.logInfo("----- No message received -----", "");
 }
 
 return result;


Reply via email to