Author: michiel
Date: 2010-01-22 00:55:00 +0100 (Fri, 22 Jan 2010)
New Revision: 40670

Modified:
   mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java
Log:
assertion message were incorrect

Modified: 
mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java
===================================================================
--- mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java     
2010-01-21 23:48:21 UTC (rev 40669)
+++ mmbase/trunk/core/src/test/java/org/mmbase/util/ResourceLoaderTest.java     
2010-01-21 23:55:00 UTC (rev 40670)
@@ -44,27 +44,27 @@
     public void getMMBaseRootModule() throws java.io.IOException {
         URL url = 
ResourceLoader.getConfigurationRoot().getResource("modules/mmbaseroot.xml");
         assertNotNull("did not find mmbaseroot.xml", url);
-        assertTrue("non existing resource should openable for input", 
url.openConnection().getDoInput());
+        assertTrue("existing resource should be openable for input", 
url.openConnection().getDoInput());
     }
 
     @Test
     public void getPropertiesBuilder() throws java.io.IOException {
         URL url = 
ResourceLoader.getConfigurationRoot().getResource("builders/properties.xml");
         assertNotNull("did not find properties.xml", url);
-        assertTrue("non existing resource should openable for input", 
url.openConnection().getDoInput());
+        assertTrue("existing resource should be openable for input" + url, 
url.openConnection().getDoInput());
     }
     @Test
     public void getPropertiesBuilder2() 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());
+        assertTrue("existing resource should openable for input", 
url.openConnection().getDoInput());
     }
 
     @Test
     public void getPropertiesBuilder3() 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());
+        assertTrue("existing resource should openable for input", 
url.openConnection().getDoInput());
         System.out.println(url);
     }
 

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

Reply via email to