@Test(expected = IllegalArgumentException.class) public void testUnknownProtocol() throws IOException { final URL url = new URL("http: final Vector<URL> urlList = new Vector<>(); urlList.add(url); final ClassLoader mockLoader = new ClassLoader() { @Override public Enumeration<URL> getResources(final String name) throws IOException { return urlList.elements(); } }; ClassPathScanner.scan("com.example", mockLoader); }
public static Set<Class<?>> scan(final String packageName) throws IOException { return scan(packageName, Thread.currentThread().getContextClassLoader()); }
ClassPathScanner { public static Set<Class<?>> scan(final String packageName) throws IOException { return scan(packageName, Thread.currentThread().getContextClassLoader()); } }
ClassPathScanner { public static Set<Class<?>> scan(final String packageName) throws IOException { return scan(packageName, Thread.currentThread().getContextClassLoader()); }  }
ClassPathScanner { public static Set<Class<?>> scan(final String packageName) throws IOException { return scan(packageName, Thread.currentThread().getContextClassLoader()); }  static Set<Class<?>> scan(final String packageName); static Set<Class<?>> scan(final String packageName, final ClassLoader cld); }
ClassPathScanner { public static Set<Class<?>> scan(final String packageName) throws IOException { return scan(packageName, Thread.currentThread().getContextClassLoader()); }  static Set<Class<?>> scan(final String packageName); static Set<Class<?>> scan(final String packageName, final ClassLoader cld);  }