-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning Android Application Testing
By :
The InstrumentationTestCase class is the direct or indirect base class for various test cases that have access to Instrumentation. This is the list of the most important direct and indirect subclasses:
ActivityTestCase
ProviderTestCase2<T extends ContentProvider>
SingleLaunchActivityTestCase<T extends Activity>
SyncBaseInstrumentation
ActivityInstrumentationTestCase2<T extends Activity>
ActivityUnitTestCase<T extends Activity>
The InstrumentationTestCase class is in the android.test package, and extends junit.framework.TestCase, which extends junit.framework.Assert.
These utility methods are used to launch Activities from a test. If the Intent is not specified using the second option, a default Intent is used:
public final T launchActivity (String pkg, Class<T> activityCls, Bundle extras)
The template class parameter T is used in activityCls and as the return type...
Change the font size
Change margin width
Change background colour