use of org.robolectric.shadows.testing.TestContentProvider3And4 in project robolectric by robolectric.
the class ContentProviderControllerTest method shouldResolveProvidersWithMultipleAuthorities.
@Test
public void shouldResolveProvidersWithMultipleAuthorities() throws Exception {
TestContentProvider3And4 contentProvider = Robolectric.buildContentProvider(TestContentProvider3And4.class).create().get();
ContentProviderClient client = contentResolver.acquireContentProviderClient("org.robolectric.authority3");
client.query(Uri.parse("something"), new String[] { "title" }, "*", new String[] {}, "created");
assertThat(contentProvider.transcript).containsExactly("onCreate", "query for something");
close(client);
}
Aggregations