1*90c8c64dSAndroid Build Coastguard Workerpackage PACKAGE; 2*90c8c64dSAndroid Build Coastguard Worker 3*90c8c64dSAndroid Build Coastguard Workerimport android.test.ActivityInstrumentationTestCase2; 4*90c8c64dSAndroid Build Coastguard Worker 5*90c8c64dSAndroid Build Coastguard Worker/** 6*90c8c64dSAndroid Build Coastguard Worker * This is a simple framework for a test of an Application. See 7*90c8c64dSAndroid Build Coastguard Worker * {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on 8*90c8c64dSAndroid Build Coastguard Worker * how to write and extend Application tests. 9*90c8c64dSAndroid Build Coastguard Worker * <p/> 10*90c8c64dSAndroid Build Coastguard Worker * To run this test, you can type: 11*90c8c64dSAndroid Build Coastguard Worker * adb shell am instrument -w \ 12*90c8c64dSAndroid Build Coastguard Worker * -e class ACTIVITY_FQ_NAME \ 13*90c8c64dSAndroid Build Coastguard Worker * PACKAGE.tests/android.test.InstrumentationTestRunner 14*90c8c64dSAndroid Build Coastguard Worker */ 15*90c8c64dSAndroid Build Coastguard Workerpublic class ACTIVITY_CLASS_NAME extends ActivityInstrumentationTestCase2<ACTIVITY_TESTED_CLASS_NAME> { 16*90c8c64dSAndroid Build Coastguard Worker 17*90c8c64dSAndroid Build Coastguard Worker public ACTIVITY_CLASS_NAME() { 18*90c8c64dSAndroid Build Coastguard Worker super("PACKAGE", ACTIVITY_TESTED_CLASS_NAME.class); 19*90c8c64dSAndroid Build Coastguard Worker } 20*90c8c64dSAndroid Build Coastguard Worker 21*90c8c64dSAndroid Build Coastguard Worker}