public class DefaultMockingDetails extends Object implements MockingDetails
MockUtil.| Constructor and Description |
|---|
DefaultMockingDetails(Object toInspect,
MockUtil delegate) |
| Modifier and Type | Method and Description |
|---|---|
Set<Class> |
getExtraInterfaces()
Returns the extra-interfaces of the mock.
|
Collection<Invocation> |
getInvocations()
Provides a collection of methods indicating the invocations of the object
|
Class<?> |
getMockedType()
Returns the type that is mocked.
|
boolean |
isMock()
Informs if the object is a mock.
|
boolean |
isSpy()
Informs if the object is a spy.
|
public boolean isMock()
MockingDetailsisMock in interface MockingDetailspublic boolean isSpy()
MockingDetailsisSpy in interface MockingDetailspublic Collection<Invocation> getInvocations()
MockingDetailsgetInvocations in interface MockingDetailspublic Class<?> getMockedType()
MockingDetailsMockito.mock(Class) or Mockito.spy(Class) function,
or the type referenced by a Mockito annotation.getMockedType in interface MockingDetailspublic Set<Class> getExtraInterfaces()
MockingDetailsMockSettings.extraInterfaces(Class[]).getExtraInterfaces in interface MockingDetails