@Test public void shouldExcludedConfiguredClasses() { ClasspathScanner classpathScanner = scannerFor(Lists.newArrayList("com.github.valdr.model"), Lists.newArrayList("com.github.valdr.model.a.TestModelWithASingleAnnotatedMember")); Set<Class<?>> classesToParse = classpathScanner.findClassesToParse(); assertThat(classesToParse, notContains(TestModelWithASingleAnnotatedMember.class)); assertThat(classesToParse.size(), is(10)); }
public Set<Class<?>> findClassesToParse() { Reflections reflections = new Reflections(new ConfigurationBuilder(). setUrls(buildClassLoaderUrls()).setScanners(new SubTypesScanner(false)).filterInputsBy(buildPackagePredicates())); return reflections.getSubTypesOf(Object.class); }
ClasspathScanner { public Set<Class<?>> findClassesToParse() { Reflections reflections = new Reflections(new ConfigurationBuilder(). setUrls(buildClassLoaderUrls()).setScanners(new SubTypesScanner(false)).filterInputsBy(buildPackagePredicates())); return reflections.getSubTypesOf(Object.class); } }
ClasspathScanner { public Set<Class<?>> findClassesToParse() { Reflections reflections = new Reflections(new ConfigurationBuilder(). setUrls(buildClassLoaderUrls()).setScanners(new SubTypesScanner(false)).filterInputsBy(buildPackagePredicates())); return reflections.getSubTypesOf(Object.class); } ClasspathScanner(Options options); }
ClasspathScanner { public Set<Class<?>> findClassesToParse() { Reflections reflections = new Reflections(new ConfigurationBuilder(). setUrls(buildClassLoaderUrls()).setScanners(new SubTypesScanner(false)).filterInputsBy(buildPackagePredicates())); return reflections.getSubTypesOf(Object.class); } ClasspathScanner(Options options); Set<Class<?>> findClassesToParse(); }
ClasspathScanner { public Set<Class<?>> findClassesToParse() { Reflections reflections = new Reflections(new ConfigurationBuilder(). setUrls(buildClassLoaderUrls()).setScanners(new SubTypesScanner(false)).filterInputsBy(buildPackagePredicates())); return reflections.getSubTypesOf(Object.class); } ClasspathScanner(Options options); Set<Class<?>> findClassesToParse();  }