Home
last modified time | relevance | path

Searched refs:spiedInstance (Results 1 – 9 of 9) sorted by relevance

/external/mockito/src/org/mockito/internal/util/
DMockCreationValidator.java36 public void validateMockedType(Class classToMock, Object spiedInstance) { in validateMockedType() argument
37 if (classToMock == null || spiedInstance == null) { in validateMockedType()
40 if (!classToMock.equals(spiedInstance.getClass())) { in validateMockedType()
41 … new Reporter().mockedTypeIsInconsistentWithSpiedInstanceType(classToMock, spiedInstance); in validateMockedType()
DMockUtil.java34 Object spiedInstance = settings.getSpiedInstance(); in createMock() local
35 if (spiedInstance != null) { in createMock()
36 new LenientCopyTool().copyToMock(spiedInstance, mock); in createMock()
/external/mockito/src/org/mockito/internal/creation/settings/
DCreationSettings.java27 protected Object spiedInstance; field in CreationSettings
41 this.spiedInstance = copy.spiedInstance; in CreationSettings()
72 return spiedInstance; in getSpiedInstance()
/external/mockito/src/org/mockito/internal/creation/
DMockSettingsImpl.java62 return spiedInstance; in getSpiedInstance()
70 public MockSettings spiedInstance(Object spiedInstance) { in spiedInstance() method in MockSettingsImpl
71 this.spiedInstance = spiedInstance; in spiedInstance()
/external/mockito/src/org/mockito/
DMockSettings.java123 MockSettings spiedInstance(Object instance); in spiedInstance() method
DMockito.java1323 .spiedInstance(object) in spy()
/external/mockito/src/org/mockito/internal/configuration/injection/
DSpyOnInjectedFieldsHandler.java45 .spiedInstance(instance) in processInjection()
/external/mockito/src/org/mockito/internal/configuration/
DSpyAnnotationEngine.java66 .spiedInstance(instance) in process()
/external/mockito/src/org/mockito/exceptions/
DReporter.java565 …lic void mockedTypeIsInconsistentWithSpiedInstanceType(Class<?> mockedType, Object spiedInstance) { in mockedTypeIsInconsistentWithSpiedInstanceType() argument
568 …"Mocked type must be: " + spiedInstance.getClass().getSimpleName() + ", but is: " + mockedType.get… in mockedTypeIsInconsistentWithSpiedInstanceType()