NoopRemoteInteraction

public class NoopRemoteInteraction
extends Object implements RemoteInteraction

java.lang.Object
   ↳ android.support.test.espresso.remote.NoopRemoteInteraction


Noop RemoteInteraction object

Summary

Inherited constants

From interface android.support.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()

Inherited methods

From class java.lang.Object
From interface android.support.test.espresso.remote.RemoteInteraction

Public constructors

NoopRemoteInteraction

NoopRemoteInteraction ()

Public methods

createRemoteCheckCallable

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.

createRemotePerformCallable

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.

isRemoteProcess

boolean isRemoteProcess ()

Returns
boolean