Lines Matching defs:test

17 package android.test;
27 import android.test.mock.MockApplication;
31 * This class provides isolated testing of a single activity. The activity under test will
36 * <p>If you prefer a functional test, see {@link android.test.ActivityInstrumentationTestCase}.
38 * <p>It must be noted that, as a true unit test, your Activity will not be running in the
55 * <p>The following methods may be called but will not do anything. For test purposes, you can use
63 * <p>The following methods may be called but will not do anything. For test purposes, you can use
103 * Start the activity under test, in the same way as if it was started by
109 * cycle methods, you must call them yourself from your test case.
112 * test methods.</i>
170 // creates a non-static inner class (thus referencing the test case) and gives it to
178 * Set the application for use during the test. You must call this function before calling
179 * {@link #startActivity}. If your test does not call this method,
180 * @param application The Application object that will be injected into the Activity under test.
196 * This method will return the value if your Activity under test calls
207 * This method will return the launch intent if your Activity under test calls
220 * This method will return the launch request code if your Activity under test calls
232 * This method will notify you if the Activity under test called
246 * This method will return the request code if the Activity under test called
268 * TODO: Make this overrideable, and the unit test can look for calls to other methods