Searched refs:spiedInstance (Results 1 – 9 of 9) sorted by relevance
36 public void validateMockedType(Class classToMock, Object spiedInstance) { in validateMockedType() argument37 if (classToMock == null || spiedInstance == null) { in validateMockedType()40 if (!classToMock.equals(spiedInstance.getClass())) { in validateMockedType()41 … new Reporter().mockedTypeIsInconsistentWithSpiedInstanceType(classToMock, spiedInstance); in validateMockedType()
34 Object spiedInstance = settings.getSpiedInstance(); in createMock() local35 if (spiedInstance != null) { in createMock()36 new LenientCopyTool().copyToMock(spiedInstance, mock); in createMock()
27 protected Object spiedInstance; field in CreationSettings41 this.spiedInstance = copy.spiedInstance; in CreationSettings()72 return spiedInstance; in getSpiedInstance()
62 return spiedInstance; in getSpiedInstance()70 public MockSettings spiedInstance(Object spiedInstance) { in spiedInstance() method in MockSettingsImpl71 this.spiedInstance = spiedInstance; in spiedInstance()
123 MockSettings spiedInstance(Object instance); in spiedInstance() method
1323 .spiedInstance(object) in spy()
45 .spiedInstance(instance) in processInjection()
66 .spiedInstance(instance) in process()
565 …lic void mockedTypeIsInconsistentWithSpiedInstanceType(Class<?> mockedType, Object spiedInstance) { in mockedTypeIsInconsistentWithSpiedInstanceType() argument568 …"Mocked type must be: " + spiedInstance.getClass().getSimpleName() + ", but is: " + mockedType.get… in mockedTypeIsInconsistentWithSpiedInstanceType()