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

Modified Files:
        ConvertImageTest.java 
Log Message:
proposal new test-cases


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


Index: ConvertImageTest.java
===================================================================
RCS file: 
/var/cvs/tests/convertimage/org/mmbase/bridge/tests/ConvertImageTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- ConvertImageTest.java       26 Sep 2008 05:05:22 -0000      1.10
+++ ConvertImageTest.java       1 Oct 2008 17:05:22 -0000       1.11
@@ -15,7 +15,7 @@
  * JUnit tests for convertimage-interface implementation.
  *
  * @author Michiel Meeuwissen
- * @version $Id: ConvertImageTest.java,v 1.10 2008/09/26 05:05:22 michiel Exp $
+ * @version $Id: ConvertImageTest.java,v 1.11 2008/10/01 17:05:22 michiel Exp $
  */
 public class ConvertImageTest extends org.mmbase.tests.BridgeTest {
 
@@ -148,6 +148,26 @@
 
     private static Cloud cloud;
     /**
+     * test what happens if template is errorneous
+     *
+     */
+    public void testErrorneousTemplate() {
+        Cloud cloud = getCloud();
+        Query q = cloud.getNodeManager("icaches").createQuery();
+
+        int count = Queries.count(q);
+        Node node = cloud.getNode("jpeg.test.image");
+        Function f = node.getFunction("cache");
+        Parameters p = f.createParameters();
+        p.set("template","s(30x30");
+        f.getFunctionValue(p);
+        // TODO, add some aaserts here, on about what it means to have used an 
errorneaous template?
+        // -Should the icache have been created?
+        // -if it should, it should of course not been created again if we ask 
it again
+        // etc.
+    }
+
+    /**
      * Sets up before each test.
      */
     public void setUp() throws Exception {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to