callRealMethod

fun <T> OngoingStubbing<T>.callRealMethod(): OngoingStubbing<T>

Calls the real method of the spy/mock when the method is called. E.g:

    whenever { mock.someFunction() }.callRealMethod()

This function is an alias for Mockito's OngoingStubbing.thenCallRealMethod.

Return

OngoingStubbing object used to stub fluently. Do not create a reference to this returned object.