OngoingStubbing

public final class OngoingStubbing
extends Object

java.lang.Object
   ↳ android.support.test.espresso.intent.OngoingStubbing


Supports method chaining after @Intents#intending method call.

Summary

Public methods

void respondWith(Instrumentation.ActivityResult result)

Sets a response for the intent being stubbed.

void respondWithFunction(ActivityResultFunction result)

Sets a response callable for the intent being stubbed.

Inherited methods

From class java.lang.Object

Public methods

respondWith

void respondWith (Instrumentation.ActivityResult result)

Sets a response for the intent being stubbed.

Parameters
result Instrumentation.ActivityResult

respondWithFunction

void respondWithFunction (ActivityResultFunction result)

Sets a response callable for the intent being stubbed.

Parameters
result ActivityResultFunction