public class LoaderTestCase extends AndroidTestCase
Loader
s. This test case
provides a simple way to synchronously get the result from a Loader making
it easy to assert that the Loader returns the expected result.mContext
Constructor and Description |
---|
LoaderTestCase() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getLoaderResultSynchronously(Loader<T> loader)
Runs a Loader synchronously and returns the result of the load.
|
assertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, getTestContext, scrubClass, setContext, setTestContext, setUp, tearDown, testAndroidTestCaseSetupProperly
public <T> T getLoaderResultSynchronously(Loader<T> loader)
loader
- The loader to run synchronously