beforeAnswering
Deprecated
Deprecated in favor of `callHooks` property that allows accessing separate hooks for different scopes. Read more in `MokkeryCallHooks` documentation.
Replace with
import dev.mokkery.MokkeryScope
import dev.mokkery.interceptor.callHooks
Content copied to clipboard
MokkeryScope.global.callHooks.beforeAnsweringContent copied to clipboard
Allows registering interceptors after a call is traced but before an answer is provided. nextIntercept returns value from defined answers or a fallback depending on a mock mode.