Home
last modified time | relevance | path

Searched refs:mockMaker (Results 1 – 8 of 8) sorted by relevance

/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DMockMakerMultiplexer.java64 for (MockMaker mockMaker : MOCK_MAKERS) { in createMock()
65 T mock = mockMaker.createMock(settings, handler); in createMock()
77 for (MockMaker mockMaker : MOCK_MAKERS) { in getHandler()
78 MockHandler handler = mockMaker.getHandler(mock); in getHandler()
90 for (MockMaker mockMaker : MOCK_MAKERS) { in resetMock()
91 mockMaker.resetMock(mock, newHandler, settings); in resetMock()
97 for (MockMaker mockMaker : MOCK_MAKERS) { in isTypeMockable()
98 TypeMockability mockability = mockMaker.isTypeMockable(type); in isTypeMockable()
110 for (MockMaker mockMaker : MOCK_MAKERS) { in clearMock()
111 if (!(mockMaker instanceof InlineMockMaker)) { in clearMock()
[all …]
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DInlineByteBuddyMockMakerTest.java50 … FinalClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_create_mock_from_final_class()
57 Pattern proxy = mockMaker.createMock(settings, new MockHandlerImpl<Pattern>(settings)); in should_create_mock_from_final_class_in_the_JDK()
64 …FinalMethodAbstractType proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalMethodAbst… in should_create_mock_from_abstract_class_with_final_method()
72 … FinalMethod proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalMethod>(settings)); in should_create_mock_from_final_class_with_interface_methods()
80 …GenericSubClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<GenericSubClass>(settin… in should_detect_non_overridden_generic_method_of_supertype()
87 HashMap proxy = mockMaker.createMock(settings, new MockHandlerImpl<HashMap>(settings)); in should_create_mock_from_hashmap()
96 mockMaker.createMock(settings, new MockHandlerImpl(settings)); in should_throw_exception_redefining_unmodifiable_class()
110 mockMaker.createMock(settings, new MockHandlerImpl(settings)); in should_throw_exception_redefining_array()
120 EnumClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<EnumClass>(settings)); in should_create_mock_from_enum()
131 mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()
[all …]
DAbstractByteBuddyMockMakerTest.java33 protected final MM mockMaker; field in AbstractByteBuddyMockMakerTest
35 public AbstractByteBuddyMockMakerTest(MM mockMaker) { in AbstractByteBuddyMockMakerTest() argument
36 this.mockMaker = mockMaker; in AbstractByteBuddyMockMakerTest()
43 … SomeInterface proxy = mockMaker.createMock(settingsFor(SomeInterface.class), dummyHandler()); in should_create_mock_from_interface()
52 …ClassWithoutConstructor proxy = mockMaker.createMock(settingsFor(ClassWithoutConstructor.class), d… in should_create_mock_from_class()
65 …ClassWithDodgyConstructor mock = mockMaker.createMock(settingsFor(ClassWithDodgyConstructor.class)… in should_create_mock_from_class_even_when_constructor_is_dodgy()
71 SomeClass mockOne = mockMaker.createMock(settingsFor(SomeClass.class), dummyHandler()); in should_mocks_have_different_interceptors()
72 SomeClass mockTwo = mockMaker.createMock(settingsFor(SomeClass.class), dummyHandler()); in should_mocks_have_different_interceptors()
74 MockHandler handlerOne = mockMaker.getHandler(mockOne); in should_mocks_have_different_interceptors()
75 MockHandler handlerTwo = mockMaker.getHandler(mockTwo); in should_mocks_have_different_interceptors()
[all …]
DByteBuddyMockMakerTest.java19 private ByteBuddyMockMaker mockMaker = new ByteBuddyMockMaker(); field in ByteBuddyMockMakerTest
29 mockMaker.createMockType(creationSettings); in should_delegate_call()
30 mockMaker.createMock(creationSettings, handler); in should_delegate_call()
31 mockMaker.getHandler(this); in should_delegate_call()
32 mockMaker.isTypeMockable(Object.class); in should_delegate_call()
33 mockMaker.resetMock(this, handler, creationSettings); in should_delegate_call()
DSubclassByteBuddyMockMakerTest.java26 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Integer.class); in is_type_mockable_excludes_primitive_wrapper_classes()
33 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(int.class); in is_type_mockable_excludes_primitive_classes()
43 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(anonymous.getClass()); in is_type_mockable_allow_anonymous()
50 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(SomeClass.class); in is_type_mockable_give_empty_reason_if_type_is_mockable()
60 ClassWithAnnotation proxy = mockMaker.createMock(mockSettings, dummyHandler()); in mock_type_with_annotations()
75 ClassWithAnnotation proxy = mockMaker.createMock(mockSettings, dummyHandler()); in mock_type_without_annotations()
/external/mockito/src/main/java/org/mockito/internal/framework/
DDefaultMockitoFramework.java44 MockMaker mockMaker = Plugins.getMockMaker(); in getInlineMockMaker() local
45 return (mockMaker instanceof InlineMockMaker) ? (InlineMockMaker) mockMaker : null; in getInlineMockMaker()
50 InlineMockMaker mockMaker = getInlineMockMaker(); in clearInlineMocks() local
51 if (mockMaker != null) { in clearInlineMocks()
52 mockMaker.clearAllMocks(); in clearInlineMocks()
58 InlineMockMaker mockMaker = getInlineMockMaker(); in clearInlineMock() local
59 if (mockMaker != null) { in clearInlineMock()
60 mockMaker.clearMock(mock); in clearInlineMock()
/external/mockito/src/main/java/org/mockito/internal/util/
DMockUtil.java24 private static final MockMaker mockMaker = Plugins.getMockMaker(); field in MockUtil
29 return mockMaker.isTypeMockable(type); in typeMockabilityOf()
35 T mock = mockMaker.createMock(settings, mockHandler); in createMock()
50 mockMaker.resetMock(mock, newHandler, settings); in resetMock()
59 return mockMaker.getHandler(mock); in getMockHandler()
81 return mock != null && mockMaker.getHandler(mock) != null; in isMock()
/external/mockito/src/main/java/org/mockito/internal/configuration/plugins/
DPluginRegistry.java20 …private final MockMaker mockMaker = new PluginLoader(pluginSwitch, DefaultMockitoPlugins.INLINE_AL… field in PluginRegistry
55 return mockMaker; in getMockMaker()