Home
last modified time | relevance | path

Searched refs:inMemoryClassLoader (Results 1 – 4 of 4) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DTypeCachingMockBytecodeGeneratorTest.java17 import static org.mockitoutil.ClassLoaders.inMemoryClassLoader;
30 ClassLoader classloader_with_life_shorter_than_cache = inMemoryClassLoader() in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()
59 ClassLoader classloader_with_life_shorter_than_cache = inMemoryClassLoader() in ensure_cache_returns_same_instance()
96 ClassLoader classloader_with_life_shorter_than_cache = inMemoryClassLoader() in ensure_cache_returns_different_instance_serializableMode()
120 ClassLoader short_lived_classloader = inMemoryClassLoader() in validate_simple_code_idea_where_weakhashmap_with_classloader_as_key_get_GCed_when_no_more_references()
/external/mockito/src/test/java/org/mockitoutil/
DClassLoaders.java52 public static InMemoryClassLoaderBuilder inMemoryClassLoader() { in inMemoryClassLoader() method in ClassLoaders
385 private InMemoryClassLoader inMemoryClassLoader; field in MemHandler
387 public MemHandler(InMemoryClassLoader inMemoryClassLoader) { in MemHandler() argument
388 this.inMemoryClassLoader = inMemoryClassLoader; in MemHandler()
393 return new MemURLConnection(url, inMemoryClassLoader); in openConnection()
397 private final InMemoryClassLoader inMemoryClassLoader; field in MemHandler.MemURLConnection
400 public MemURLConnection(URL url, InMemoryClassLoader inMemoryClassLoader) { in MemURLConnection() argument
402 this.inMemoryClassLoader = inMemoryClassLoader; in MemURLConnection()
412 … return new ByteArrayInputStream(inMemoryClassLoader.inMemoryClassObjects.get(qualifiedName)); in getInputStream()
DClassLoadersTest.java183 .inMemoryClassLoader() in can_not_load_a_class_not_previously_registered_in_builder()
201 .inMemoryClassLoader() in can_load_a_class_in_memory_from_bytes()
218 .inMemoryClassLoader() in cannot_load_a_class_file_not_in_parent()
236 ClassLoader classLoader = ClassLoaders.inMemoryClassLoader() in can_list_all_classes_reachable_in_a_classloader()
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMockingMultipleInterfacesTest.java16 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()