Builder

public final class Builder<INTERACTION extends Object, ASSERTION extends Object, ACTION extends Object>

Builder class that is used to build a single instance of Interceptor.

See also

Constructors

Functions

Link copied to clipboard
public final Unit onAll(Boolean isOverride, Function1<INTERACTION, Unit> interceptor)

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

Link copied to clipboard
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.

Link copied to clipboard
public final Unit onPerform(Boolean isOverride, Function2<INTERACTION, ACTION, Unit> interceptor)

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