| org.unitils.easymock.util.Calls
Calls | public enum Calls (Code) | | Possible values for allowing unexpected (non-recorded) method calls on mock objects. When set to lenient, a 'Nice
mock' is created, as called in the EasyMock terminology. For non-void methods this means that a Java default (null,
0 or false) is returned.
author: Tim Ducheyne author: Filip Neven |
Field Summary | |
Enum Constant | DEFAULT Defaults to the value of the org.unitils.easymock.annotation.LenientMock$Calls configuration setting. | Enum Constant | LENIENT Accept unexpected method calls. | Enum Constant | STRICT |
DEFAULT | Enum Constant DEFAULT(Code) | | Defaults to the value of the org.unitils.easymock.annotation.LenientMock$Calls configuration setting.
|
LENIENT | Enum Constant LENIENT(Code) | | Accept unexpected method calls. Return default values (null, 0…) for unexpected non-void method calls
|
STRICT | Enum Constant STRICT(Code) | | Throw an exception when unexpected method calls occur
|
|
|