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

Modified Files:
        FunctionsTest.java 
Log Message:
test-case for using non-existing function on cluster nodes


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.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- FunctionsTest.java  17 Jul 2008 17:22:43 -0000      1.13
+++ FunctionsTest.java  22 Sep 2008 16:17:19 -0000      1.14
@@ -19,7 +19,7 @@
  *
  * @author Simon Groenewolt ([EMAIL PROTECTED])
  * @author Michiel Meeuwissen
- * @since $Id: FunctionsTest.java,v 1.13 2008/07/17 17:22:43 michiel Exp $
+ * @since $Id: FunctionsTest.java,v 1.14 2008/09/22 16:17:19 michiel Exp $
  * @since MMBase-1.8
  */
 public class FunctionsTest extends BridgeTest {
@@ -184,4 +184,21 @@
             System.out.println("Functionsets can only be used on local cloud");
         }
     }
+
+    public void testNonExistingFunctionOnClusterNode() { //MMB-1208
+        Cloud cloud = getCloud();
+        NodeList nl = cloud.getList("", "object", "",
+                                    "", "", "",
+                                    "", false);
+        Node n = nl.get(0);
+        assertTrue(n instanceof org.mmbase.bridge.implementation.VirtualNode);
+        try {
+            n.getValue("nonexistingfunction(object.number)");
+            fail("Using non existing function should raise an exeption"); // 
this fails!
+        } catch (Exception e) {
+            // The exception should also be clear
+            assertTrue(e.getMessage().equals("")); // think something up for 
this
+        }
+
+    }
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to