do Call Real Method
Calls the real method of the spy/mock when the method is called. E.g:
whenever { mock.someFunction() }.doCallRealMethod()Content copied to clipboard
This function is an alias for callRealMethod.
Return
OngoingStubbing object used to stub fluently. Do not create a reference to this returned object.
Sets to call the real implementation of a method in a mock, to be applied in reverse stubbing.
Example:
doCallRealMethod().whenever(mock).someMethod()Content copied to clipboard
This function is an alias for Mockito's Mockito.doCallRealMethod.
Return
Stubber object used to stub fluently.