Lines Matching refs:test

17 package android.test;
26 * This test case provides a framework in which you can test Application classes in
34 * In order to support the lifecycle of a Application, this test case will make the
37 * <ul><li>The test case will not call onCreate() until your test calls
39 * to set up or adjust any additional framework or test logic before
41 * <li>After your test completes, the test case {@link #tearDown} method is
50 * dependencies, and thus perform a true unit test.
56 * {@link #createApplication()}. The test framework provides a
57 * number of alternatives for Context, including {@link android.test.mock.MockContext MockContext},
58 * {@link android.test.RenamingDelegatingContext RenamingDelegatingContext}, and
76 * @return Returns the actual Application under test.
83 * This will do the work to instantiate the Application under test. After this, your test
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.
111 * test, by calling {@link AndroidTestCase#setContext(Context) setContext()},
127 * This will make the necessary calls to terminate the Application under test (it will
129 * you can call it directly from your test in order to check for proper shutdown behaviors.
138 * Shuts down the Application under test. Also makes sure all resources are cleaned up and
140 * test. Subclasses that override this method should make sure they call super.tearDown()
151 // creates a non-static inner class (thus referencing the test case) and gives it to
160 * Mock or other Context objects for your Application under test.
169 * This test simply confirms that the Application class can be instantiated properly.