Back to project page ShoppingList.
The source code is released under:
GNU General Public License
If you think the Android project ShoppingList listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.sledzdev.shoppinglist.manager; /*from w ww . j av a2 s .c o m*/ import android.content.ContentResolver; import android.content.Context; /** * Created by Mariusz on 11.01.14. */ public class MockContentManager extends ContentManager { private ContentResolver mockContentResolver; public MockContentManager(ContentResolver mockContentResolver) { super(null); if (mockContentResolver == null) { throw new IllegalArgumentException("null resolver"); } this.mockContentResolver = mockContentResolver; } @Override protected ContentResolver initResolver(Context context) { return mockContentResolver; } }