Code example for MockContentResolver

0
            return false; 
        } 
    } 
 
    public DbTestUtils(Resources resources) {
        this.contentResolver = new MockContentResolver();
        this.context = new FakeContext(contentResolver, resources);
        this.sharedPreferences = new FakeSharedPreferences();
        this.contentProvider = new FakeContentProvider(context);
        context.setSharedPreferences(sharedPreferences);
    } 
 
    public MockContentResolver getContentResolver() {
        return contentResolver;
    } 
 
    public FakeContext getContext() { 
        return context;
    } 
 
    public FakeContentProvider getContentProvider() {