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(java.lang.Class<T> activityClass) |
LithoActivityTestRule(java.lang.Class<T> activityClass,
boolean initialTouchMode) |
LithoActivityTestRule(java.lang.Class<T> activityClass,
boolean initialTouchMode,
boolean launchActivity) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeActivityLaunched() |
public LithoActivityTestRule(java.lang.Class<T> activityClass)
public LithoActivityTestRule(java.lang.Class<T> activityClass, boolean initialTouchMode)
public LithoActivityTestRule(java.lang.Class<T> activityClass, boolean initialTouchMode, boolean launchActivity)