- andReturn
Sets a return value that will be returned for the expected invocation.
- anyTimes
Expect the last invocation any times.
- atLeastOnce
Expect the last invocation at least once.
- andThrow
Sets a throwable that will be thrown for the expected invocation.
- once
Expect the last invocation once. This is default in EasyMock.
- times
Expect the last invocation between min and maxtimes.
- andStubReturn
Sets a stub return value that will be returned for the expected invocation.
- andAnswer
Sets an object that will be used to calculate the answer for the expected
invocation (either return
- andStubAnswer
Sets a stub object that will be used to calculate the answer for the expected
invocation (either ret
- andDelegateTo
Sets an object implementing the same interface as the mock. The expected method
call will be delegat
- andVoid
Records a call but returns nothing. Used to chain calls on void methods
expectLastCall().andThrow(e)
- asStub
Sets stub behavior for the expected invocation (this is needed for void
methods).