Example usage for android.test.mock MockContentResolver addProvider

List of usage examples for android.test.mock MockContentResolver addProvider

Introduction

In this page you can find the example usage for android.test.mock MockContentResolver addProvider.

Prototype

public void addProvider(String name, ContentProvider provider) 

Source Link

Document

Adds access to a provider based on its authority

Usage

From source file:io.pivotal.arca.dispatcher.test.SupportRequestDispatcherTest.java

private RequestDispatcher getDispatcher() {
    final MockContentResolver resolver = new MockContentResolver();
    resolver.addProvider(AUTHORITY, mProvider);
    final RequestExecutor executor = new RequestExecutor.DefaultRequestExecutor(resolver);
    return new SupportRequestDispatcher(executor, getContext(), mLoaderManager);
}