/external/mockito/src/main/java/org/mockito/internal/util/ |
D | MockCreationValidator.java | 40 public void validateMockedType(Class<?> classToMock, Object spiedInstance) { in validateMockedType() argument 41 if (classToMock == null || spiedInstance == null) { in validateMockedType() 44 if (!classToMock.equals(spiedInstance.getClass())) { in validateMockedType() 45 throw mockedTypeIsInconsistentWithSpiedInstanceType(classToMock, spiedInstance); in validateMockedType()
|
D | MockUtil.java | 37 Object spiedInstance = settings.getSpiedInstance(); in createMock() local 38 if (spiedInstance != null) { in createMock() 39 new LenientCopyTool().copyToMock(spiedInstance, mock); in createMock()
|
/external/mockito/src/main/java/org/mockito/internal/creation/ |
D | MockSettingsImpl.java | 68 return spiedInstance; in getSpiedInstance() 76 public MockSettings spiedInstance(Object spiedInstance) { in spiedInstance() method in MockSettingsImpl 77 this.spiedInstance = spiedInstance; in spiedInstance()
|
/external/mockito/src/main/java/org/mockito/internal/creation/settings/ |
D | CreationSettings.java | 26 protected Object spiedInstance; field in CreationSettings 43 this.spiedInstance = copy.spiedInstance; in CreationSettings() 76 return spiedInstance; in getSpiedInstance()
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | MocksCreationTest.java | 91 mock(List.class, withSettings().spiedInstance(list)); in shouldScreamWhenSpyCreatedWithWrongType() 100 mock(LinkedList.class, withSettings().spiedInstance(list)); in shouldAllowCreatingSpiesWithCorrectType()
|
D | MocksSerializationForAnnotationTest.java | 259 .spiedInstance(list) in should_serialize_with_real_object_spy()
|
D | MocksSerializationTest.java | 280 .spiedInstance(list) in should_serialize_with_real_object_spy()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | SpyAnnotationEngine.java | 76 withSettings().spiedInstance(instance) in spyInstance() 112 return Mockito.mock(type, settings.spiedInstance(constructor.newInstance())); in spyNewInstance()
|
/external/mockito/src/main/java/org/mockito/ |
D | MockSettings.java | 122 MockSettings spiedInstance(Object instance); in spiedInstance() method
|
D | Mockito.java | 1789 .spiedInstance(object) in spy()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/ |
D | SpyOnInjectedFieldsHandler.java | 44 .spiedInstance(instance) in processInjection()
|
/external/mockito/src/test/java/org/mockitousage/debugging/ |
D | VerboseLoggingOfInvocationsOnMockTest.java | 127 withSettings().spiedInstance(new FooImpl()).verboseLogging()); in shouldPrintRealInvocationOnSpyToStdOut()
|
/external/mockito/src/main/java/org/mockito/internal/exceptions/ |
D | Reporter.java | 583 …xception mockedTypeIsInconsistentWithSpiedInstanceType(Class<?> mockedType, Object spiedInstance) { in mockedTypeIsInconsistentWithSpiedInstanceType() argument 586 …"Mocked type must be: " + spiedInstance.getClass().getSimpleName() + ", but is: " + mockedType.get… in mockedTypeIsInconsistentWithSpiedInstanceType()
|
/external/robolectric/v1/lib/test/ |
D | mockito-core-1.8.5.jar | META-INF/
META-INF/MANIFEST.MF
org/
org/mockito/
org/ ... |