Author: michiel
Date: 2010-04-13 15:41:54 +0200 (Tue, 13 Apr 2010)
New Revision: 41890

Added:
   mmbase/trunk/core/src/test/java/org/mmbase/util/
   mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java
Log:
moved a test back from bridge

Copied: mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java 
(from rev 41866, 
mmbase/trunk/bridge/src/test/java/org/mmbase/util/ResourceLoaderTest.java)
===================================================================
--- mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java     
                        (rev 0)
+++ mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java     
2010-04-13 13:41:54 UTC (rev 41890)
@@ -0,0 +1,44 @@
+/*
+
+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.util;
+
+
+import java.net.URL;
+import java.util.*;
+import java.io.*;
+
+import org.junit.*;
+import static org.junit.Assert.*;
+/**
+ * Test the working of the ResourceLoader.
+ *
+ * <ul>
+ * <li>tests if the resource loader can run when mmbase is not started</li>
+ * </ul>
+ *
+ * @author Kees Jongenburger
+ * @verion $Id$
+ */
+public class ResourceLoaderTest {
+
+
+
+    /**
+     * perform lookup of mmbaseroot.xml using getConfigurationroot
+     */
+    @Test
+    public void getMMBaseRootModule() throws java.io.IOException {
+        URL url = 
ResourceLoader.getConfigurationRoot().getResource("modules/mmbaseroot.xml");
+        assertNotNull("did not find mmbaseroot.xml", url);
+        assertTrue("existing resource should be openable for input", 
url.openConnection().getDoInput());
+    }
+
+
+}

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to