{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class IntentsRule
Rule for performing set up and tear down of Espresso-Intents API.
Usage: @Rule public IntentsRule intentsRule = new IntentsRule()
Then in a test method: Intents.intended(IntentMatchers.hasComponent("com.example.FooActivity"))
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
@NonNull IntentsRule |
Rule for performing set up and tear down of Espresso-Intents API. |
public @NonNull IntentsRule IntentsRule()
Rule for performing set up and tear down of Espresso-Intents API.
Usage: @Rule public IntentsRule intentsRule = new IntentsRule()
Then in a test method: Intents.intended(IntentMatchers.hasComponent("com.example.FooActivity"))