@Test public void testJarScanner() throws IOException { final URLClassLoader loader = new URLClassLoader(new URL[] { new URL("jar:file:src/test/resources/dummy.jar!/") }); final Set<Class<?>> result = ClassPathScanner.scan("com.example", loader); assertNotNull(result); assertEquals(2, result.size()); }
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);  }