do Nothing
Sets to do nothing, to be applied in reverse stubbing. This comes handy is some rare cases, like:
stubbing consecutive calls with different behavior
when spying a real object, suppress the real implementation of the spied object
Example:
doNothing().whenever(mock).someMethod()Content copied to clipboard
This function is an alias for Mockito's Mockito.doNothing.
Return
Stubber object used to stub fluently.