android.test.ProviderTestCase2 Java Examples
The following examples show how to use
android.test.ProviderTestCase2.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestFileContentProviderTest.java From android-test with Apache License 2.0 | 6 votes |
private void initResolver() throws Exception { synchronized (TEST_RESOLVER_INIT_LOCK) { try { resolverHostedDirectory = hostedDirectory; resolverAccess = access; // Holy type safe language batman! resolver = ProviderTestCase2 .<TestFileContentProviderTest.TestFileContentProvider> newResolverWithContentProviderFromSql( getContext(), "foo", TestFileContentProvider.class, TEST_AUTHORITY, "bogus", 0, ""); } finally { resolverHostedDirectory = BOGUS_DIRECTORY; resolverAccess = Access.READ_ONLY; } } }