Home | History | Annotate | Download | only in test

Lines Matching refs:Activity

19 import android.app.Activity;
24 * If you would like to test a single activity with an
26 * launch and finish the activity in {@link #setUp} and {@link #tearDown}.
28 * This launches the activity only once for the entire class instead of doing it
31 public abstract class SingleLaunchActivityTestCase<T extends Activity>
41 * package hosting the activity to be launched, which is specified in the AndroidManifest.xml
44 * @param pkg The package hosting the activity to be launched.
45 * @param activityClass The activity to test.
54 * The activity that will be set up for use in each test method.
56 private static Activity sActivity;
65 // If it is the first test case, launch the activity.
76 // If it is the last test case, call finish on the activity.
85 assertNotNull("activity should be launched successfully", sActivity);