}
public void testFindResources() {
org.apache.commons.discovery.log.SimpleLog.setLevel(logLevel);
ClassLoaders loaders = new ClassLoaders();
/**
* To many class loaders when searching for multiple
* resources means that we can find the same (same URL)
* resource for each loader...
* let's keep this to a minimum.
*/
ClassLoader cl = getClass().getClassLoader();
if (cl != null)
loaders.put(getClass().getClassLoader(), true);
else
loaders.put(JDKHooks.getJDKHooks().getSystemClassLoader(), true);
String name = "testResource";
String partialPaths[] = { "/test/", "/testAlt1/", "/testAlt2/" };