BaseMethodMock
Class for mocking a method that takes parameters described by W and can be stubbed to S
Inheritors
Types
A Stub is a class that provides a BaseAnswer for a set of parametersSpec.Values
Functions
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