org.mockito
public interface MockingDetails
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.
|
boolean isMock()
boolean isSpy()
Collection<Invocation> getInvocations()
Class<?> getMockedType()
Mockito.mock(Class)
or Mockito.spy(Class)
function,
or the type referenced by a Mockito annotation.Set<Class> getExtraInterfaces()
MockSettings.extraInterfaces(Class[])
.