FileDocCategorySizeDatePackage
ApiDemosApplicationTests.javaAPI DocAndroid 1.5 API2094Wed May 06 22:41:08 BST 2009com.example.android.apis

ApiDemosApplicationTests

public 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

Fields Summary
Constructors Summary
public ApiDemosApplicationTests()

        super(ApiDemosApplication.class);
      
Methods Summary
protected voidsetUp()

          super.setUp();
      
public voidtestPreconditions()
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 voidtestSimpleCreate()
Test basic startup/shutdown of Application

          createApplication();