Java Code Examples for org.robolectric.Robolectric#buildContentProvider()

The following examples show how to use org.robolectric.Robolectric#buildContentProvider() . 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: TestFeatureLiveDataRuntime.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * Setup content provider.
 */
@Before
public void setupContentProvider() {
	ProviderInfo info = new ProviderInfo();
	info.authority = BindApp1ContentProvider.AUTHORITY;

	ContentProviderController<BindApp1ContentProvider> controller = Robolectric.buildContentProvider(BindApp1ContentProvider.class);
	controller.create(info);
}
 
Example 2
Source File: TestContentProviderInsert.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * Setup content provider.
 */
@Before
public void setupContentProvider() {
	ProviderInfo info = new ProviderInfo();
	info.authority = BindPersonContentProvider.AUTHORITY;

	ContentProviderController<BindPersonContentProvider> controller = Robolectric.buildContentProvider(BindPersonContentProvider.class);
	controller.create(info);
}
 
Example 3
Source File: TestContentProviderRuntime.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * Setup content provider.
 */
@Before
public void setupContentProvider() {
	ProviderInfo info = new ProviderInfo();
	info.authority = BindPersonContentProvider.AUTHORITY;

	ContentProviderController<BindPersonContentProvider> controller = Robolectric.buildContentProvider(BindPersonContentProvider.class);
	controller.create(info);
}
 
Example 4
Source File: TestContentProviderWrong.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * Setup content provider.
 */
@Before
public void setupContentProvider() {
	ProviderInfo info = new ProviderInfo();
	info.authority = BindPersonContentProvider.AUTHORITY;

	ContentProviderController<BindPersonContentProvider> controller = Robolectric.buildContentProvider(BindPersonContentProvider.class);
	controller.create(info);
}
 
Example 5
Source File: TestContentProviderCase1Runtime.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * Setup content provider.
 */
@Before
public void setupContentProvider() {
	ProviderInfo info = new ProviderInfo();
	info.authority = BindArtistsContentProvider.AUTHORITY;

	ContentProviderController<BindArtistsContentProvider> controller = Robolectric.buildContentProvider(BindArtistsContentProvider.class);
	controller.create(info);
}
 
Example 6
Source File: IntegrationTest.java    From storio with Apache License 2.0 5 votes vote down vote up
@Before
public void setUp() {
    contentResolver = RuntimeEnvironment.application.getContentResolver();

    storIOContentResolver = createStoreIOContentResolver().build();

    ContentProviderController<IntegrationContentProvider> controller =
            Robolectric.buildContentProvider(IntegrationContentProvider.class);

    ProviderInfo providerInfo = new ProviderInfo();
    providerInfo.authority = IntegrationContentProvider.AUTHORITY;
    controller.create(providerInfo);
}