Stay organized with collections Save and categorize content based on your preferences.

NoopRemoteInteraction

public class NoopRemoteInteraction implements RemoteInteraction


Noop RemoteInteraction object

Summary

Public constructors

Public methods

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

Creates a callable to run Espresso check interaction on remote processes

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

Creates a callable to run a perform interaction on remote processes.

boolean

Inherited Constants

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

Public constructors

NoopRemoteInteraction

public NoopRemoteInteraction()

Public methods

createRemoteCheckCallable

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

Creates a callable to run Espresso check interaction on remote processes

The caller is expected to schedule the task to run.

Parameters
Matcher<Root> rootMatcher

the root matcher to use.

Matcher<View> viewMatcher

the view matcher to use.

Map<String, IBinder> iBinders

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

Returns
Callable<Void>

a Callable that will perform the check pending completion of the task.

createRemotePerformCallable

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

Creates a callable to run a perform interaction on remote processes.

If there no remote Espresso currently running in a timely manner the interaction will not be executed and a NoRemoteEspressoInstanceException will be thrown.

Parameters
Matcher<Root> rootMatcher

the root matcher to use.

Matcher<View> viewMatcher

the view matcher to use.

Map<String, IBinder> iBinders

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

ViewAction[] viewActions

one or more actions to execute.

Returns
Callable<Void>

a Callable that performs the action.

isRemoteProcess

public boolean isRemoteProcess()
Returns
boolean

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