onCheck

public final Unit onCheck(Boolean isOverride, Function2<INTERACTION, ASSERTION, Unit> interceptor)

Sets the interceptor for the check operation for a given interaction. If overridden, breaks the call chain of operation and transfers the responsibility to invoke the Espresso on the developer.

Parameters

isOverride

if true - breaks the call chain, false otherwise

interceptor

lambda with intercepting logic