Update of /var/cvs/tests/bridge/org/mmbase/bridge
In directory james.mmbase.org:/tmp/cvs-serv21382

Modified Files:
        FunctionsTest.java 
Log Message:
That funcion sets don't work remotely is logical, they don't go through the 
context provider. So, simply don't test those remotely


See also: http://cvs.mmbase.org/viewcvs/tests/bridge/org/mmbase/bridge


Index: FunctionsTest.java
===================================================================
RCS file: /var/cvs/tests/bridge/org/mmbase/bridge/FunctionsTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- FunctionsTest.java  13 Jun 2008 09:22:46 -0000      1.12
+++ FunctionsTest.java  17 Jul 2008 17:22:43 -0000      1.13
@@ -19,7 +19,7 @@
  *
  * @author Simon Groenewolt ([EMAIL PROTECTED])
  * @author Michiel Meeuwissen
- * @since $Id: FunctionsTest.java,v 1.12 2008/06/13 09:22:46 michiel Exp $
+ * @since $Id: FunctionsTest.java,v 1.13 2008/07/17 17:22:43 michiel Exp $
  * @since MMBase-1.8
  */
 public class FunctionsTest extends BridgeTest {
@@ -166,7 +166,7 @@
      * XXX really not complete yet
      */
     public void testFunctionSets() {
-
+        if 
(getCloudContext().getUri().equals(ContextProvider.DEFAULT_CLOUD_CONTEXT_NAME)) 
{
         Function testfunc1 = FunctionSets.getFunction("utils", "randomLong");
         assertTrue("function 'randomLong' not found (functionset 'utils')", 
testfunc1 != null);
         // long randomLong = testfunc1.getFunctionValue(null);
@@ -180,5 +180,8 @@
         Object result = testfunc2.getFunctionValue(params2);
         assertTrue("Expected return value of type 'Boolean', but got: '" + 
result + "'", result instanceof java.lang.Boolean);
         assertTrue("function 'testBoolean' didn't return true as was 
expected", ((Boolean) result).booleanValue());
+        } else {
+            System.out.println("Functionsets can only be used on local cloud");
+        }
     }
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to