public class

NoopRemoteInteraction

extends Object
implements RemoteInteraction
java.lang.Object
   ↳ androidx.test.espresso.remote.NoopRemoteInteraction

Class Overview

Noop RemoteInteraction object

Summary

[Expand]
Inherited Constants
From interface androidx.test.espresso.remote.RemoteInteraction
Public Constructors
NoopRemoteInteraction()
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

The caller is expected to schedule the task to run.

Callable<Void> createRemotePerformCallable(Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<StringIBinder> iBinders, ViewAction... viewActions)
Creates a callable to run a perform interaction on remote processes.
boolean isRemoteProcess()
[Expand]
Inherited Methods
From class java.lang.Object
From interface androidx.test.espresso.remote.RemoteInteraction

Public Constructors

public NoopRemoteInteraction ()

Public Methods

public 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

The caller is expected to schedule the task to run.

Parameters
rootMatcher Matcher: the root matcher to use.
viewMatcher Matcher: the view matcher to use.
iBinders Map: a list of binders to pass along to the remote process instance
viewAssertion ViewAssertion: the assertion to check.
Returns
Callable<Void> a Callable that will perform the check pending completion of the task.

public Callable<Void> createRemotePerformCallable (Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<StringIBinder> 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
rootMatcher Matcher: the root matcher to use.
viewMatcher Matcher: the view matcher to use.
iBinders Map: a list of binders to pass along to the remote process instance
viewActions ViewAction: one or more actions to execute.
Returns
Callable<Void> a Callable that performs the action.

public boolean isRemoteProcess ()

Returns
boolean