MethodMock
A BaseMethodMock for non-suspending methods.
Types
A BaseMethodMock.Stub for non-suspending methods.
Functions
Calls a MethodMock without any parameters
Calls a MethodMock with one parameter
Calls a MethodMock with two parameters
Calls a MethodMock with three parameters
Calls a MethodMock with four parameters
Calls a MethodMock with five parameters
Generates a stub for a BaseMethodMock without and parameters
Generates a stub for a BaseMethodMock with one parameter
Generates a stub for a BaseMethodMock with two parameters
Generates a stub for a BaseMethodMock with three parameters
Generates a stub for a BaseMethodMock with four parameters
Generates a stub for a BaseMethodMock with five parameters
Resets both calls and stubbs. Shorthand for resetCalls and resetStubs
Resets all calls to this mock method. This means that verify(times=0)
should succeed
Removes all stubbs from this mock method. Note that this also removes any default stubbs that may have been created when declaring the mock.
Verifies that a BaseMethodMock without parameters has been called
Verifies that a BaseMethodMock with one parameters has been called with a ParameterMatcherOrCaptor
Verifies that a BaseMethodMock with two parameters has been called with all parameters matching their respective ParameterMatcherOrCaptor
Verifies that a BaseMethodMock with three parameters has been called with all parameters matching their respective ParameterMatcherOrCaptor
Verifies that a BaseMethodMock with four parameters has been called with all parameters matching their respective ParameterMatcherOrCaptor
Verifies that a BaseMethodMock with five parameters has been called with all parameters matching their respective ParameterMatcherOrCaptor