java.lang.Object | |||
↳ | android.support.test.rule.UiThreadTestRule | ||
↳ | android.support.test.rule.ActivityTestRule<T extends android.app.Activity> | ||
↳ | android.support.test.espresso.intent.rule.IntentsTestRule<T extends android.app.Activity> |
This rule makes it easy to use Espresso-Intents APIs in functional UI tests. This class is an
extension of ActivityTestRule
, which initializes Espresso-Intents before each test
annotated with
Test
and releases
Espresso-Intents after each test run. The Activity will be terminated after each test and this
rule can be used in the same way as ActivityTestRule
.
Espresso-Intents APIs can be used in two ways:
intended(Matcher)
APIintending(Matcher)
APIPublic Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override this method to execute any code that should run after your
Activity is
finished.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.test.rule.ActivityTestRule
| |||||||||||
From class
android.support.test.rule.UiThreadTestRule
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.junit.rules.TestRule
|
Override this method to execute any code that should run after your Activity
is
launched, but before any test code is run including any method annotated with
Before
.
Prefer
Before
over this method. This method should usually not be overwritten directly in tests and only be
used by subclasses of ActivityTestRule to get notified when the activity is created and
visible but test runs.