|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
android.test.InstrumentationTestCase
android.test.ActivityTestCase
android.test.ActivityInstrumentationTestCase<T>
ActivityInstrumentationTestCase2, which provides more options for
configuring the Activity under test
@Deprecated public abstract class ActivityInstrumentationTestCase<T extends Activity>
This class provides functional testing of a single activity. The activity under test will
be created using the system infrastructure (by calling InstrumentationTestCase.launchActivity())
and you will then be able to manipulate your Activity directly. Most of the work is handled
automatically here by setUp() and tearDown().
If you prefer an isolated unit test, see ActivityUnitTestCase.
| Field Summary | |
|---|---|
(package private) Class<T> |
mActivityClass
Deprecated. |
(package private) boolean |
mInitialTouchMode
Deprecated. |
(package private) String |
mPackage
Deprecated. |
| Constructor Summary | |
|---|---|
ActivityInstrumentationTestCase(String pkg,
Class<T> activityClass)
Deprecated. |
|
ActivityInstrumentationTestCase(String pkg,
Class<T> activityClass,
boolean initialTouchMode)
Deprecated. |
|
| Method Summary | |
|---|---|
T |
getActivity()
Deprecated. |
protected void |
setUp()
Deprecated. Sets up the fixture, for example, open a network connection. |
protected void |
tearDown()
Deprecated. Make sure all resources are cleaned up and garbage collected before moving on to the next test. |
void |
testActivityTestCaseSetUpProperly()
Deprecated. |
| Methods inherited from class android.test.ActivityTestCase |
|---|
scrubClass, setActivity |
| Methods inherited from class android.test.InstrumentationTestCase |
|---|
getInstrumentation, injectInsrumentation, launchActivity, launchActivityWithIntent, runTest, runTestOnUiThread, sendKeys, sendKeys, sendRepeatedKeys |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
String mPackage
Class<T extends Activity> mActivityClass
boolean mInitialTouchMode
| Constructor Detail |
|---|
public ActivityInstrumentationTestCase(String pkg,
Class<T> activityClass)
pkg - The package of the instrumentation.activityClass - The activity to test.
public ActivityInstrumentationTestCase(String pkg,
Class<T> activityClass,
boolean initialTouchMode)
pkg - The package of the instrumentation.activityClass - The activity to test.initialTouchMode - true = in touch mode| Method Detail |
|---|
public T getActivity()
getActivity in class ActivityTestCase
protected void setUp()
throws Exception
TestCase
setUp in class TestCaseException
protected void tearDown()
throws Exception
InstrumentationTestCase
tearDown in class InstrumentationTestCaseException
public void testActivityTestCaseSetUpProperly()
throws Exception
Exception
|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||