IntentsTestRule

public class IntentsTestRule<T extends 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:

Parameters
<T extends Activity>

The activity to test

Summary

Public constructors

IntentsTestRule(Class<T> activityClass)
IntentsTestRule(Class<T> activityClass, boolean initialTouchMode)
IntentsTestRule(
    Class<T> activityClass,
    boolean initialTouchMode,
    boolean launchActivity
)

Public constructors

IntentsTestRule

public IntentsTestRule(Class<T> activityClass)

IntentsTestRule

public IntentsTestRule(Class<T> activityClass, boolean initialTouchMode)

IntentsTestRule

public IntentsTestRule(
    Class<T> activityClass,
    boolean initialTouchMode,
    boolean launchActivity
)