{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

IntentsRule

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"))

Summary

Public constructors

Public functions

open IntentsRule

Rule for performing set up and tear down of Espresso-Intents API.

Public constructors

IntentsRule

IntentsRule()

Public functions

IntentsRule

open fun 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"))