public interface IMockObject
Modifier and Type | Method and Description |
---|---|
IDefaultResponse |
getDefaultResponse()
Returns the default response strategy for this mock object.
|
java.lang.Object |
getInstance()
Returns the instance of this mock object.
|
java.lang.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.
|
java.lang.Class<?> |
getType()
Returns the declared type of this mock object.
|
boolean |
isVerified()
Tells whether this mock object supports verification of invocations.
|
boolean |
matches(java.lang.Object target,
IMockInteraction interaction)
Tells whether this mock object matches the target of the specified interaction.
|
java.lang.String getName()
null
if it has no name.null
if it has no namejava.lang.Class<?> getType()
java.lang.Object getInstance()
boolean isVerified()
IDefaultResponse getDefaultResponse()
Specification getSpecification()
boolean matches(java.lang.Object target, IMockInteraction interaction)
target
- the target of the interactioninteraction
- an interactionCopyright © 2014. All rights reserved