Lines Matching refs:Application
21 import android.app.Application;
26 * This test case provides a framework in which you can test Application classes in
28 * Application, and hooks by which you can inject various dependencies and control
29 * the environment in which your Application is tested.
32 * Every Application is designed to be accessed within a specific sequence of
33 * method calls (see {@link android.app.Application} for more details).
34 * In order to support the lifecycle of a Application, this test case will make the
42 * automatically called, and it will stop & destroy your application by calling its
47 * Every Application has one inherent dependency, the {@link android.content.Context Context} in
52 * <p>If simply run your tests as-is, your Application will be injected with a fully-functional
61 public abstract class ApplicationTestCase<T extends Application> extends AndroidTestCase {
76 * @return Returns the actual Application under test.
83 * This will do the work to instantiate the Application under test. After this, your test
84 * code must also start and stop the Application.
95 * Load and attach the application under test.
108 * Start the Application under test, in the same way as if it was started by the system.
109 * If you use this method to start the Application, it will automatically
127 * This will make the necessary calls to terminate the Application under test (it will
138 * Shuts down the Application under test. Also makes sure all resources are cleaned up and
160 * Mock or other Context objects for your Application under test.
169 * This test simply confirms that the Application class can be instantiated properly.
175 assertNotNull("Application class could not be instantiated successfully", mApplication);