Class Overview
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:
Summary
|
[Expand]
Inherited Methods |
From class
android.support.test.rule.ActivityTestRule
|
void
|
afterActivityFinished()
|
|
void
|
afterActivityLaunched()
|
|
Statement
|
apply(Statement arg0, Description arg1)
|
|
void
|
beforeActivityLaunched()
|
|
void
|
finishActivity()
|
|
T
|
getActivity()
|
|
Intent
|
getActivityIntent()
|
|
Instrumentation.ActivityResult
|
getActivityResult()
|
|
T
|
launchActivity(Intent arg0)
|
|
void
|
runOnUiThread(Runnable arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
From interface
org.junit.rules.TestRule
|
abstract
Statement
|
apply(Statement arg0, Description arg1)
|
|
Public Constructors
public
IntentsTestRule
(Class<T> activityClass)
| Parameters |
activityClass |
Class |
public
IntentsTestRule
(Class<T> activityClass, boolean initialTouchMode)
| Parameters |
activityClass |
Class |
initialTouchMode |
boolean |
public
IntentsTestRule
(Class<T> activityClass, boolean initialTouchMode, boolean launchActivity)
| Parameters |
activityClass |
Class |
initialTouchMode |
boolean |
launchActivity |
boolean |
Protected Methods
protected
void
afterActivityFinished
()
protected
void
afterActivityLaunched
()