Lines Matching refs:Application

19 import android.app.Application;
24 * This test case provides a framework in which you can test Application classes in
26 * Application, and hooks by which you can inject various dependencies and control
27 * the environment in which your Application is tested.
30 * Every Application is designed to be accessed within a specific sequence of
31 * method calls (see {@link android.app.Application} for more details).
32 * In order to support the lifecycle of a Application, this test case will make the
45 * Every Application has one inherent dependency, the {@link android.content.Context Context} in
50 * <p>If simply run your tests as-is, your Application will be injected with a fully-functional
65 public abstract class ApplicationTestCase<T extends Application> extends AndroidTestCase {
80 * @return Returns the actual Application under test.
87 * This will do the work to instantiate the Application under test. After this, your test
88 * code must also start and stop the Application.
112 * Start the Application under test, in the same way as if it was started by the system.
113 * If you use this method to start the Application, it will automatically
131 * This will make the necessary calls to terminate the Application under test (it will
142 * Shuts down the Application under test. Also makes sure all resources are cleaned up and
164 * Mock or other Context objects for your Application under test.
173 * This test simply confirms that the Application class can be instantiated properly.
179 assertNotNull("Application class could not be instantiated successfully", mApplication);