NoopRemoteInteraction


public class NoopRemoteInteraction implements RemoteInteraction


Noop RemoteInteraction object

Summary

Public constructors

Public methods

Callable<Void>
createRemoteCheckCallable(
    Matcher<Root> rootMatcher,
    Matcher<View> viewMatcher,
    Map<StringIBinder> iBinders,
    ViewAssertion viewAssertion
)

Creates a callable to run Espresso check interaction on remote processes

Callable<Void>
createRemotePerformCallable(
    Matcher<Root> rootMatcher,
    Matcher<View> viewMatcher,
    Map<StringIBinder> iBinders,
    ViewAction[] viewActions
)

Creates a callable to run Espresso perform interaction on remote processes

boolean

Returns true if the current Espresso instance running in a remote process.

Inherited Constants

From androidx.test.espresso.remote.RemoteInteraction
static final String
BUNDLE_EXECUTION_STATUS = "executionStatus"

Inherited methods

From androidx.test.espresso.remote.RemoteInteraction
boolean

Returns {code true} if the current Espresso instance is communicating with another Espresso instance in a remote process.

Public constructors

NoopRemoteInteraction

public NoopRemoteInteraction()

Public methods

createRemoteCheckCallable

public Callable<VoidcreateRemoteCheckCallable(
    Matcher<Root> rootMatcher,
    Matcher<View> viewMatcher,
    Map<StringIBinder> iBinders,
    ViewAssertion viewAssertion
)

Creates a callable to run Espresso check interaction on remote processes

Parameters
Matcher<Root> rootMatcher

the root matcher to use.

Matcher<View> viewMatcher

the view matcher to use.

Map<StringIBinder> iBinders

a list of binders to pass along to the remote process instance

ViewAssertion viewAssertion

the view assertion to use.

Returns
Callable<Void>

the created Callable

createRemotePerformCallable

public Callable<VoidcreateRemotePerformCallable(
    Matcher<Root> rootMatcher,
    Matcher<View> viewMatcher,
    Map<StringIBinder> iBinders,
    ViewAction[] viewActions
)

Creates a callable to run Espresso perform interaction on remote processes

Parameters
Matcher<Root> rootMatcher

the root matcher to use.

Matcher<View> viewMatcher

the view matcher to use.

Map<StringIBinder> iBinders

a list of binders to pass along to the remote process instance

ViewAction[] viewActions

one or more actions to execute.

Returns
Callable<Void>

isRemoteProcess

public boolean isRemoteProcess()

Returns true if the current Espresso instance running in a remote process.