lightbulb_outline Please take our October 2018 developer survey. Start survey

OngoingStubbing

public final class OngoingStubbing
extends Object

java.lang.Object
   ↳ androidx.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