/external/mockito/src/main/java/org/mockito/internal/invocation/ |
D | DefaultInvocationFactory.java | 14 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/ |
D | InlineByteBuddyMockMakerTest.java | 19 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() 63 …MockCreationSettings<FinalMethodAbstractType> settings = settingsFor(FinalMethodAbstractType.class… in should_create_mock_from_abstract_class_with_final_method() 71 …MockCreationSettings<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 …]
|
D | AbstractByteBuddyMockMakerTest.java | 16 import org.mockito.mock.MockCreationSettings; 109 …MockCreationSettings<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/ |
D | MockHandlerFactoryTest.java | 13 import org.mockito.mock.MockCreationSettings; 32 …MockCreationSettings<?> settings = (MockCreationSettings<?>) new MockSettingsImpl().defaultAnswer(… in handle_result_must_not_be_null_for_primitives() 50 …MockCreationSettings<?> settings = (MockCreationSettings<?>) new MockSettingsImpl().defaultAnswer(… in valid_handle_result_is_permitted()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | UniversalTestListener.java | 9 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()
|
D | NoOpTestListener.java | 7 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/ |
D | ByteBuddyMockMaker.java | 9 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()
|
D | SubclassByteBuddyMockMaker.java | 12 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()
|
D | ClassCreatingMockMaker.java | 7 import org.mockito.mock.MockCreationSettings; 11 <T> Class<? extends T> createMockType(MockCreationSettings<T> settings); in createMockType()
|
D | InlineByteBuddyMockMaker.java | 16 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/ |
D | StubbingLookupNotifier.java | 9 import org.mockito.mock.MockCreationSettings; 33 final private MockCreationSettings mockSettings; 38 MockCreationSettings mockSettings) { in Event() 61 public MockCreationSettings getMockSettings() { in getMockSettings()
|
D | VerificationStartedNotifier.java | 13 import org.mockito.mock.MockCreationSettings; 49 … MockCreationSettings originalMockSettings = this.originalMockingDetails.getMockCreationSettings(); in setMock() 59 static void assertCompatibleTypes(Object mock, MockCreationSettings originalSettings) { in assertCompatibleTypes()
|
D | StubbingLookupEvent.java | 8 import org.mockito.mock.MockCreationSettings; 35 MockCreationSettings getMockSettings(); in getMockSettings()
|
/external/mockito/src/main/java/org/mockito/internal/util/ |
D | MockUtil.java | 14 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/ |
D | MockMaker.java | 9 import org.mockito.mock.MockCreationSettings; 68 MockCreationSettings<T> settings, in createMock() 101 MockCreationSettings settings in resetMock()
|
D | InstantiatorProvider2.java | 8 import org.mockito.mock.MockCreationSettings; 57 Instantiator getInstantiator(MockCreationSettings<?> settings); in getInstantiator()
|
D | InstantiatorProvider.java | 8 import org.mockito.mock.MockCreationSettings; 70 Instantiator getInstantiator(MockCreationSettings<?> settings); in getInstantiator()
|
/external/mockito/src/main/java/org/mockito/invocation/ |
D | InvocationFactory.java | 9 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()
|
D | MockHandler.java | 9 import org.mockito.mock.MockCreationSettings; 48 MockCreationSettings<T> getMockSettings(); in getMockSettings()
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
D | MockHandlerImpl.java | 19 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()
|
D | InvocationNotifierHandler.java | 11 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/ |
D | AndroidByteBuddyMockMaker.java | 11 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/ |
D | MockCreationListener.java | 7 import org.mockito.mock.MockCreationSettings; 21 void onMockCreated(Object mock, MockCreationSettings settings); in onMockCreated()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsDeepStubs.java | 16 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/ |
D | DefaultMockitoFrameworkTest.java | 16 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()
|