public interface IMockObject
| Modifier and Type | Method and Description |
|---|---|
IDefaultResponse |
getDefaultResponse()
Returns the default response strategy for this mock object.
|
Object |
getInstance()
Returns the instance of this mock object.
|
String |
getName()
Returns the name of this mock object, or
null if it has no name. |
Specification |
getSpecification()
Returns the specification that this mock object is attached to.
|
Class<?> |
getType()
Returns the declared type of this mock object.
|
boolean |
isVerified()
Tells whether this mock object supports verification of invocations.
|
boolean |
matches(Object target,
IMockInteraction interaction)
Tells whether this mock object matches the target of the specified interaction.
|
String getName()
null if it has no name.null if it has no nameClass<?> getType()
Object getInstance()
boolean isVerified()
IDefaultResponse getDefaultResponse()
Specification getSpecification()
boolean matches(Object target, IMockInteraction interaction)
target - the target of the interactioninteraction - an interaction