Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DTypeCachingMockBytecodeGeneratorTest.java35 .withClassDefinition("foo.Bar", makeMarkerInterface("foo.Bar")) in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()
65 .withClassDefinition("foo.Bar", makeMarkerInterface("foo.Bar")) in ensure_cache_returns_same_instance()
104 .withClassDefinition("foo.Bar", makeMarkerInterface("foo.Bar")) in ensure_cache_returns_different_instance_serializableMode()
130 .withClassDefinition("foo.Bar", makeMarkerInterface("foo.Bar")) in validate_simple_code_idea_where_weakhashmap_with_classloader_as_key_get_GCed_when_no_more_references()
/external/mockito/src/test/java/org/mockitoutil/
DClassLoadersTest.java188 … .withClassDefinition("yop.Dude", SimpleClassGenerator.makeMarkerInterface("yop.Dude")) in can_not_load_a_class_not_previously_registered_in_builder()
206 … .withClassDefinition("yop.Dude", SimpleClassGenerator.makeMarkerInterface("yop.Dude")) in can_load_a_class_in_memory_from_bytes()
242 … .withClassDefinition("a.A", SimpleClassGenerator.makeMarkerInterface("a.A")) in can_list_all_classes_reachable_in_a_classloader()
243 … .withClassDefinition("a.b.B", SimpleClassGenerator.makeMarkerInterface("a.b.B")) in can_list_all_classes_reachable_in_a_classloader()
244 … .withClassDefinition("c.C", SimpleClassGenerator.makeMarkerInterface("c.C")) in can_list_all_classes_reachable_in_a_classloader()
DClassLoaders.java335 public InMemoryClassLoaderBuilder withClassDefinition(String name, byte[] classDefinition) { in withClassDefinition() method in ClassLoaders.InMemoryClassLoaderBuilder
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMockingMultipleInterfacesTest.java101 .withClassDefinition("test.Interface1", makeMarkerInterface("test.Interface1")) in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()
105 .withClassDefinition("test.Interface2", makeMarkerInterface("test.Interface2")) in should_mock_class_with_interfaces_of_different_class_loader_AND_different_classpaths()