Searched refs:inMemoryClassLoader (Results 1 – 4 of 4) sorted by relevance
21 import static org.mockitoutil.ClassLoaders.inMemoryClassLoader;34 ClassLoader classloader_with_life_shorter_than_cache = inMemoryClassLoader() in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()64 ClassLoader classloader_with_life_shorter_than_cache = inMemoryClassLoader() in ensure_cache_returns_same_instance()103 ClassLoader classloader_with_life_shorter_than_cache = inMemoryClassLoader() in ensure_cache_returns_different_instance_serializableMode()129 ClassLoader short_lived_classloader = inMemoryClassLoader() in validate_simple_code_idea_where_weakhashmap_with_classloader_as_key_get_GCed_when_no_more_references()
56 public static InMemoryClassLoaderBuilder inMemoryClassLoader() { in inMemoryClassLoader() method in ClassLoaders389 private InMemoryClassLoader inMemoryClassLoader; field in MemHandler391 public MemHandler(InMemoryClassLoader inMemoryClassLoader) { in MemHandler() argument392 this.inMemoryClassLoader = inMemoryClassLoader; in MemHandler()397 return new MemURLConnection(url, inMemoryClassLoader); in openConnection()401 private final InMemoryClassLoader inMemoryClassLoader; field in MemHandler.MemURLConnection404 public MemURLConnection(URL url, InMemoryClassLoader inMemoryClassLoader) { in MemURLConnection() argument406 this.inMemoryClassLoader = inMemoryClassLoader; in MemURLConnection()416 … return new ByteArrayInputStream(inMemoryClassLoader.inMemoryClassObjects.get(qualifiedName)); in getInputStream()
187 .inMemoryClassLoader() in can_not_load_a_class_not_previously_registered_in_builder()205 .inMemoryClassLoader() in can_load_a_class_in_memory_from_bytes()222 .inMemoryClassLoader() in cannot_load_a_class_file_not_in_parent()240 ClassLoader classLoader = ClassLoaders.inMemoryClassLoader() in can_list_all_classes_reachable_in_a_classloader()
16 import static org.mockitoutil.ClassLoaders.inMemoryClassLoader;100 Class<?> interface1 = inMemoryClassLoader() in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()104 Class<?> interface2 = inMemoryClassLoader() in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()