Home
last modified time | relevance | path

Searched refs:MockCreationSettings (Results 1 – 25 of 54) sorted by relevance

123

/external/mockito/src/main/java/org/mockito/internal/invocation/
DDefaultInvocationFactory.java14 import org.mockito.mock.MockCreationSettings;
21 …public Invocation createInvocation(Object target, MockCreationSettings settings, Method method, fi… in createInvocation()
26 …public Invocation createInvocation(Object target, MockCreationSettings settings, Method method, Re… in createInvocation()
31 …private Invocation createInvocation(Object target, MockCreationSettings settings, Method method, R… in createInvocation()
35 … Method invokedMethod, Object[] arguments, RealMethod realMethod, MockCreationSettings settings, L… in createInvocation()
47 arguments, RealMethod realMethod, MockCreationSettings settings) { in createInvocation()
51 private static MockitoMethod createMockitoMethod(Method method, MockCreationSettings settings) { in createMockitoMethod()
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DInlineByteBuddyMockMakerTest.java19 import org.mockito.mock.MockCreationSettings;
49 MockCreationSettings<FinalClass> settings = settingsFor(FinalClass.class); in should_create_mock_from_final_class()
56 MockCreationSettings<Pattern> settings = settingsFor(Pattern.class); in should_create_mock_from_final_class_in_the_JDK()
63MockCreationSettings<FinalMethodAbstractType> settings = settingsFor(FinalMethodAbstractType.class… in should_create_mock_from_abstract_class_with_final_method()
71MockCreationSettings<FinalMethod> settings = settingsFor(FinalMethod.class, SampleInterface.class); in should_create_mock_from_final_class_with_interface_methods()
79 MockCreationSettings<GenericSubClass> settings = settingsFor(GenericSubClass.class); in should_detect_non_overridden_generic_method_of_supertype()
86 MockCreationSettings<HashMap> settings = settingsFor(HashMap.class); in should_create_mock_from_hashmap()
94 MockCreationSettings settings = settingsFor(int.class); in should_throw_exception_redefining_unmodifiable_class()
108 MockCreationSettings<? extends int[]> settings = settingsFor(array.getClass()); in should_throw_exception_redefining_array()
119 MockCreationSettings<EnumClass> settings = settingsFor(EnumClass.class); in should_create_mock_from_enum()
[all …]
DAbstractByteBuddyMockMakerTest.java16 import org.mockito.mock.MockCreationSettings;
109MockCreationSettings<CallingSuperMethodClass> settings = settingsWithSuperCall(CallingSuperMethodC… in should_create_mock_from_class_with_super_call_to_final_method()
116 MockCreationSettings<SampleClass> settings = settingsWithSuperCall(SampleClass.class); in should_reset_mock_and_set_new_handler()
157 …private static <T> MockCreationSettings<T> settingsFor(Class<T> type, Class<?>... extraInterfaces)… in settingsFor()
164 …private static <T> MockCreationSettings<T> serializableSettingsFor(Class<T> type, SerializableMode… in serializableSettingsFor()
171 private static <T> MockCreationSettings<T> settingsWithConstructorFor(Class<T> type) { in settingsWithConstructorFor()
177 private static <T> MockCreationSettings<T> settingsWithSuperCall(Class<T> type) { in settingsWithSuperCall()
190 public MockCreationSettings<Object> getMockSettings() { return null; } in getMockSettings()
/external/mockito/src/test/java/org/mockito/internal/handler/
DMockHandlerFactoryTest.java13 import org.mockito.mock.MockCreationSettings;
32MockCreationSettings<?> settings = (MockCreationSettings<?>) new MockSettingsImpl().defaultAnswer(… in handle_result_must_not_be_null_for_primitives()
50MockCreationSettings<?> settings = (MockCreationSettings<?>) new MockSettingsImpl().defaultAnswer(… in valid_handle_result_is_permitted()
/external/mockito/src/main/java/org/mockito/internal/junit/
DUniversalTestListener.java9 import org.mockito.mock.MockCreationSettings;
26 …private Map<Object, MockCreationSettings> mocks = new IdentityHashMap<Object, MockCreationSettings
44 mocks = new IdentityHashMap<Object, MockCreationSettings>(); in testFinished()
74 public void onMockCreated(Object mock, MockCreationSettings settings) { in onMockCreated()
DNoOpTestListener.java7 import org.mockito.mock.MockCreationSettings;
13 public void onMockCreated(Object mock, MockCreationSettings settings) {} in onMockCreated()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DByteBuddyMockMaker.java9 import org.mockito.mock.MockCreationSettings;
24 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
29 public <T> Class<? extends T> createMockType(MockCreationSettings<T> creationSettings) { in createMockType()
39 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
DSubclassByteBuddyMockMaker.java12 import org.mockito.mock.MockCreationSettings;
41 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
69 public <T> Class<? extends T> createMockType(MockCreationSettings<T> settings) { in createMockType()
82 …private static <T> T ensureMockIsAssignableToMockedType(MockCreationSettings<T> settings, T mock) { in ensureMockIsAssignableToMockedType()
90 …private <T> RuntimeException prettifyFailure(MockCreationSettings<T> mockFeatures, Exception gener… in prettifyFailure()
137 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
DClassCreatingMockMaker.java7 import org.mockito.mock.MockCreationSettings;
11 <T> Class<? extends T> createMockType(MockCreationSettings<T> settings); in createMockType()
DInlineByteBuddyMockMaker.java16 import org.mockito.mock.MockCreationSettings;
181 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
199 public <T> Class<? extends T> createMockType(MockCreationSettings<T> settings) { in createMockType()
212 …private <T> RuntimeException prettifyFailure(MockCreationSettings<T> mockFeatures, Exception gener… in prettifyFailure()
271 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
/external/mockito/src/main/java/org/mockito/internal/listeners/
DStubbingLookupNotifier.java9 import org.mockito.mock.MockCreationSettings;
33 final private MockCreationSettings mockSettings;
38 MockCreationSettings mockSettings) { in Event()
61 public MockCreationSettings getMockSettings() { in getMockSettings()
DVerificationStartedNotifier.java13 import org.mockito.mock.MockCreationSettings;
49MockCreationSettings originalMockSettings = this.originalMockingDetails.getMockCreationSettings(); in setMock()
59 static void assertCompatibleTypes(Object mock, MockCreationSettings originalSettings) { in assertCompatibleTypes()
DStubbingLookupEvent.java8 import org.mockito.mock.MockCreationSettings;
35 MockCreationSettings getMockSettings(); in getMockSettings()
/external/mockito/src/main/java/org/mockito/internal/util/
DMockUtil.java14 import org.mockito.mock.MockCreationSettings;
32 public static <T> T createMock(MockCreationSettings<T> settings) { in createMock()
47 MockCreationSettings settings = oldHandler.getMockSettings(); in resetMock()
91 MockCreationSettings mockSettings = getMockHandler(mock).getMockSettings(); in maybeRedefineMockName()
97 public static MockCreationSettings getMockSettings(Object mock) { in getMockSettings()
/external/mockito/src/main/java/org/mockito/plugins/
DMockMaker.java9 import org.mockito.mock.MockCreationSettings;
68 MockCreationSettings<T> settings, in createMock()
101 MockCreationSettings settings in resetMock()
DInstantiatorProvider2.java8 import org.mockito.mock.MockCreationSettings;
57 Instantiator getInstantiator(MockCreationSettings<?> settings); in getInstantiator()
DInstantiatorProvider.java8 import org.mockito.mock.MockCreationSettings;
70 Instantiator getInstantiator(MockCreationSettings<?> settings); in getInstantiator()
/external/mockito/src/main/java/org/mockito/invocation/
DInvocationFactory.java9 import org.mockito.mock.MockCreationSettings;
50 …Invocation createInvocation(Object target, MockCreationSettings settings, Method method, Callable … in createInvocation()
76 …Invocation createInvocation(Object target, MockCreationSettings settings, Method method, RealMetho… in createInvocation()
DMockHandler.java9 import org.mockito.mock.MockCreationSettings;
48 MockCreationSettings<T> getMockSettings(); in getMockSettings()
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java19 import org.mockito.mock.MockCreationSettings;
38 private final MockCreationSettings<T> mockSettings;
40 public MockHandlerImpl(MockCreationSettings<T> mockSettings) { in MockHandlerImpl()
116 public MockCreationSettings<T> getMockSettings() { in getMockSettings()
DInvocationNotifierHandler.java11 import org.mockito.mock.MockCreationSettings;
28 public InvocationNotifierHandler(MockHandler<T> mockHandler, MockCreationSettings<T> settings) { in InvocationNotifierHandler()
65 public MockCreationSettings<T> getMockSettings() { in getMockSettings()
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
DAndroidByteBuddyMockMaker.java11 import org.mockito.mock.MockCreationSettings;
38 public <T> T createMock(MockCreationSettings<T> settings, MockHandler handler) { in createMock()
48 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
/external/mockito/src/main/java/org/mockito/listeners/
DMockCreationListener.java7 import org.mockito.mock.MockCreationSettings;
21 void onMockCreated(Object mock, MockCreationSettings settings); in onMockCreated()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsDeepStubs.java16 import org.mockito.mock.MockCreationSettings;
95 MockCreationSettings parentMockSettings = MockUtil.getMockSettings(parentMock); in newDeepStubMock()
102 …thSettingsUsing(GenericMetadataSupport returnTypeGenericMetadata, MockCreationSettings parentMockS… in withSettingsUsing()
111 …ettings propagateSerializationSettings(MockSettings mockSettings, MockCreationSettings parentMockS… in propagateSerializationSettings()
/external/mockito/src/test/java/org/mockito/internal/framework/
DDefaultMockitoFrameworkTest.java16 import org.mockito.mock.MockCreationSettings;
83 verify(listener).onMockCreated(eq(mock), any(MockCreationSettings.class)); in adds_creation_listener()
84 verify(listener).onMockCreated(eq(mock2), any(MockCreationSettings.class)); in adds_creation_listener()
97 verify(listener).onMockCreated(ArgumentMatchers.any(), any(MockCreationSettings.class)); in removes_creation_listener()

123