Searched refs:ClassLoaders (Results 1 – 8 of 8) sorted by relevance
14 import static org.mockitoutil.ClassLoaders.currentClassLoader;15 import static org.mockitoutil.ClassLoaders.excludingClassLoader;16 import static org.mockitoutil.ClassLoaders.isolatedClassLoader;17 import static org.mockitoutil.ClassLoaders.jdkClassLoader;186 ClassLoader cl = ClassLoaders in can_not_load_a_class_not_previously_registered_in_builder()204 ClassLoader cl = ClassLoaders in can_load_a_class_in_memory_from_bytes()221 ClassLoader cl = ClassLoaders in cannot_load_a_class_file_not_in_parent()240 ClassLoader classLoader = ClassLoaders.inMemoryClassLoader() in can_list_all_classes_reachable_in_a_classloader()248 … assertThat(ClassLoaders.in(classLoader).listOwnedClasses()).containsOnly("a.A", "a.b.B", "c.C"); in can_list_all_classes_reachable_in_a_classloader()249 … assertThat(ClassLoaders.in(classLoader).omit("b", "c").listOwnedClasses()).containsOnly("a.A"); in can_list_all_classes_reachable_in_a_classloader()[all …]
42 public abstract class ClassLoaders { class45 protected ClassLoaders() { in ClassLoaders() method in ClassLoaders73 return ClassLoaders.class.getClassLoader(); in currentClassLoader()180 public static class IsolatedURLClassLoaderBuilder extends ClassLoaders {203 codeSourceUrls.add(obtainCurrentClassPathOf(ClassLoaders.class.getName())); in withCurrentCodeSourceUrls()267 public static class ExcludingURLClassLoaderBuilder extends ClassLoaders {289 codeSourceUrls.add(obtainCurrentClassPathOf(ClassLoaders.class.getName())); in withCurrentCodeSourceUrls()327 public static class InMemoryClassLoaderBuilder extends ClassLoaders {423 String url = ClassLoaders.class.getClassLoader().getResource(path).toExternalForm(); in obtainCurrentClassPathOf()
14 import org.mockitoutil.ClassLoaders;19 import static org.mockitoutil.ClassLoaders.coverageTool;27 ClassLoader classLoader_without_JUnit = ClassLoaders.excludingClassLoader() in pure_mockito_should_not_depend_JUnit___ByteBuddy()39 …Set<String> pureMockitoAPIClasses = ClassLoaders.in(classLoader_without_JUnit).omit("runners", "ju… in pure_mockito_should_not_depend_JUnit___ByteBuddy()
14 import org.mockitoutil.ClassLoaders;29 ClassLoader anotherWorld = ClassLoaders.isolatedClassLoader() in returns_mockito_annotation_engine_of_Plugins_if_no_MockitoConfiguration()38 ClassLoaders.using(anotherWorld).execute(new Runnable() { in returns_mockito_annotation_engine_of_Plugins_if_no_MockitoConfiguration()
20 import org.mockitoutil.ClassLoaders;29 import static org.mockitoutil.ClassLoaders.coverageTool;140 ClassLoader classpath_with_objenesis = ClassLoaders.excludingClassLoader() in instantiate_fine_when_objenesis_on_the_classpath()
21 import static org.mockitoutil.ClassLoaders.inMemoryClassLoader;
8 import static org.mockitoutil.ClassLoaders.excludingClassLoader;
16 import static org.mockitoutil.ClassLoaders.inMemoryClassLoader;