Update of /var/cvs/tests/util/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv15809/util/org/mmbase/util

Modified Files:
        ResourceLoaderTest.java 
Log Message:
added some test-cases


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


Index: ResourceLoaderTest.java
===================================================================
RCS file: /var/cvs/tests/util/org/mmbase/util/ResourceLoaderTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ResourceLoaderTest.java     12 Sep 2008 13:33:47 -0000      1.6
+++ ResourceLoaderTest.java     1 Oct 2008 17:00:13 -0000       1.7
@@ -23,7 +23,7 @@
  * </ul>
  *
  * @author Kees Jongenburger
- * @verion $Id: ResourceLoaderTest.java,v 1.6 2008/09/12 13:33:47 michiel Exp $
+ * @verion $Id: ResourceLoaderTest.java,v 1.7 2008/10/01 17:00:13 michiel Exp $
  */
 public class ResourceLoaderTest extends TestCase {
 
@@ -55,6 +55,13 @@
         assertTrue("non existing resource should openable for input", 
url.openConnection().getDoInput());
     }
 
+    public void testGetPropertiesBuilder3() throws java.io.IOException {
+        URL url = 
ResourceLoader.getConfigurationRoot().getChildResourceLoader("builders").getResource("/properties.xml");
+        assertNotNull("did not find /properties.xml", url);
+        assertTrue("non existing resource should openable for input", 
url.openConnection().getDoInput());
+        System.out.println(url);
+    }
+
     public void testBuilders() throws java.io.IOException {
         Set<String> xmls = 
ResourceLoader.getConfigurationRoot().getChildResourceLoader("builders").getResourcePaths(ResourceLoader.XML_PATTERN,
 true);
         assertTrue("" + xmls + " did not contain  properties.xml", 
xmls.contains("properties.xml"));
@@ -62,4 +69,11 @@
 
     }
 
+    public void testBuilders2() throws java.io.IOException {
+        List<URL> xmls1 = 
ResourceLoader.getConfigurationRoot().getChildResourceLoader("builders").getResourceList("/properties.xml");
+        List<URL> xmls2 = 
ResourceLoader.getConfigurationRoot().getChildResourceLoader("builders").getResourceList("properties.xml");
+        assertEquals(xmls1, xmls2);
+
+    }
+
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to