|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MethodSignature | |
---|---|
biz.xsoftware.mock | The only package of MockObject which contains the classes to create(or allow the creation of) mock objects from interfaces. |
Uses of MethodSignature in biz.xsoftware.mock |
---|
Methods in biz.xsoftware.mock with parameters of type MethodSignature | ||
---|---|---|
void |
MockObject.addBehavior(MethodSignature methodSignature,
Behavior behavior)
Adds a snippet of code to be run which exists in the Behavior implementation. |
|
void |
MockObject.addIgnore(MethodSignature... methodSignature)
When calling expect, the MockObject will ignore the methods in 'methods' variable so if one of the methods in this array is called, it will not result in an exception. |
|
|
MockObject.addReturnValue(MethodSignature methodSignature,
T... o)
Add a return value to return when 'method' is called. |
|
void |
MockObject.addThrowException(MethodSignature method,
Throwable e)
Add an exception to throw when a method on the mockObject is called. |
|
void |
MockObject.removeIgnore(MethodSignature... methodSignature)
Removes the method from the ignored methods set. |
|
void |
MockObject.setDefaultBehavior(MethodSignature methodSignature,
Behavior b)
Set the DefaultBehavior for a 'method'. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |