AndroidMockKDispatcher

Called by method entry hooks. Dispatches these hooks to the MockMethodAdvice.

Functions

Link copied to clipboard
open fun get(identifier: String, instance: Any): AndroidMockKDispatcher
Get the dispatcher for a identifier.
Link copied to clipboard
open fun getOrigin(mock: Any, instrumentedMethodWithTypeAndSignature: String): Method
Link copied to clipboard
open fun handle(instance: Any, origin: Method, arguments: Array<Any>): Callable<out Any>
Link copied to clipboard
open fun handleConstructor(instance: Any, methodDescriptor: String, arguments: Array<Any>): Callable<out Any>
Link copied to clipboard
open fun isMock(instance: Any): Boolean
Link copied to clipboard
open fun set(identifier: String, advice: Any)
Set up a new advice to receive calls for an identifier