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