OngoingStubbing
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack.
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings.
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 | |
|---|---|
[disclosure_down.png]
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 |