ApiDemosApplicationTestspublic class ApiDemosApplicationTests extends android.test.ApplicationTestCase This is a simple framework for a test of an Application. See
{@link android.test.ApplicationTestCase ApplicationTestCase} for more information on
how to write and extend Application tests.
To run this test, you can type:
adb shell am instrument -w \
-e class com.example.android.apis.ApiDemosApplicationTests \
com.example.android.apis.tests/android.test.InstrumentationTestRunner |
Constructors Summary |
---|
public ApiDemosApplicationTests()
super(ApiDemosApplication.class);
|
Methods Summary |
---|
protected void | setUp()
super.setUp();
| public void | testPreconditions()The name 'test preconditions' is a convention to signal that if this
test doesn't pass, the test case was not set up properly and it might
explain any and all failures in other tests. This is not guaranteed
to run before other tests, as junit uses reflection to find the tests.
| public void | testSimpleCreate()Test basic startup/shutdown of Application
createApplication();
|
|