Author: michiel
Date: 2010-07-02 09:00:10 +0200 (Fri, 02 Jul 2010)
New Revision: 42791

Added:
   mmbase/trunk/applications/resources/src/test/java/org/mmbase/datatypes/
   
mmbase/trunk/applications/resources/src/test/java/org/mmbase/datatypes/processors/
   
mmbase/trunk/applications/resources/src/test/java/org/mmbase/datatypes/processors/BinaryFileTest.java
Log:
needs work, but will add stuff here

Added: 
mmbase/trunk/applications/resources/src/test/java/org/mmbase/datatypes/processors/BinaryFileTest.java
===================================================================
--- 
mmbase/trunk/applications/resources/src/test/java/org/mmbase/datatypes/processors/BinaryFileTest.java
                               (rev 0)
+++ 
mmbase/trunk/applications/resources/src/test/java/org/mmbase/datatypes/processors/BinaryFileTest.java
       2010-07-02 07:00:10 UTC (rev 42791)
@@ -0,0 +1,51 @@
+/*
+
+This software is OSI Certified Open Source Software.
+OSI Certified is a certification mark of the Open Source Initiative.
+
+The license (Mozilla version 1.0) can be read at the MMBase site.
+See http://www.MMBase.org/license
+
+*/
+package org.mmbase.datatypes.processors;
+
+import java.io.*;
+import java.util.*;
+import org.mmbase.util.*;
+import org.mmbase.bridge.mock.*;
+import org.mmbase.bridge.*;
+import org.mmbase.datatypes.*;
+
+
+import org.junit.*;
+import static org.junit.Assert.*;
+import static org.junit.Assume.*;
+
+/**
+ *
+ * @author Michiel Meeuwissen
+ */
+
+public class BinaryFileTest {
+
+
+    @BeforeClass
+    public static void setup() {
+        DataTypes.initialize();
+        Map<String, DataType> map = new HashMap<String, DataType>();
+        map.put("number", Constants.DATATYPE_INTEGER);
+        map.put("file", DataTypes.getDataType("file"));
+        MockCloudContext.getInstance().addNodeManager("filetest", map);
+    }
+
+    @Test
+    public void set() {
+        NodeManager nm = 
MockCloudContext.getInstance().getCloud("mmbase").getNodeManager("filetest");
+        Node n = nm.createNode();
+        assertTrue(n.getNumber() < 0);
+
+    }
+
+
+
+}

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to