public class LithoActivityTestRule<T extends Activity>
extends <any>
ActivityTestRule
ensuring that the activity is launched in end to end
test mode.
Use in your Espresso tests like this:
@Rule
public LithoActivityTestRule<DemoListActivity> mActivity =
new LithoActivityTestRule<>(DemoListActivity.class);
Constructor and Description |
---|
LithoActivityTestRule(Class<T> activityClass) |
LithoActivityTestRule(Class<T> activityClass,
boolean initialTouchMode) |
LithoActivityTestRule(Class<T> activityClass,
boolean initialTouchMode,
boolean launchActivity) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeActivityLaunched() |