Lines Matching full: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
40 * automatically called, and it will stop & destroy your application by calling its
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
59 public abstract class ApplicationTestCase<T extends Application> extends AndroidTestCase {
74 * @return Returns the actual Application under test.
81 * This will do the work to instantiate the Application under test. After this, your test
82 * code must also start and stop the Application.
93 * Load and attach the application under test.
106 * Start the Application under test, in the same way as if it was started by the system.
107 * If you use this method to start the Application, it will automatically
125 * This will make the necessary calls to terminate the Application under test (it will
136 * Shuts down the Application under test. Also makes sure all resources are cleaned up and
158 * Mock or other Context objects for your Application under test.
167 * This test simply confirms that the Application class can be instantiated properly.
173 assertNotNull("Application class could not be instantiated successfully", mApplication);