@Test public void testIsProviderMaster_isFalse_returnFalse() throws Exception { when(cursor.moveToFirst()).thenReturn(true); when(cursor.getInt(0)).thenReturn(0); when(contentResolver.query(Uri.EMPTY, null, null, null, null)).thenReturn(cursor); final boolean master = sharedProviderFinder.isProviderMaster(Uri.EMPTY, contentResolver); assertThat(master).isFalse(); }
boolean isProviderMaster(Uri contentUri, ContentResolver resolver) { return getBooleanValue(resolver.query(contentUri, null, null, null, null), false); }
SharedProviderFinder implements Types { boolean isProviderMaster(Uri contentUri, ContentResolver resolver) { return getBooleanValue(resolver.query(contentUri, null, null, null, null), false); } }
SharedProviderFinder implements Types { boolean isProviderMaster(Uri contentUri, ContentResolver resolver) { return getBooleanValue(resolver.query(contentUri, null, null, null, null), false); } protected  SharedProviderFinder(Context context, Pattern authorityMatcherPattern,
      String sharedPermission, ContentResolver contentResolver); }
SharedProviderFinder implements Types { boolean isProviderMaster(Uri contentUri, ContentResolver resolver) { return getBooleanValue(resolver.query(contentUri, null, null, null, null), false); } protected  SharedProviderFinder(Context context, Pattern authorityMatcherPattern,
      String sharedPermission, ContentResolver contentResolver); static SharedProviderFinder get(Context context); List<ProviderInfo> findProviders(); String findMasterProvider(List<ProviderInfo> providerInfos); String findMasterProvider(); }
SharedProviderFinder implements Types { boolean isProviderMaster(Uri contentUri, ContentResolver resolver) { return getBooleanValue(resolver.query(contentUri, null, null, null, null), false); } protected  SharedProviderFinder(Context context, Pattern authorityMatcherPattern,
      String sharedPermission, ContentResolver contentResolver); static SharedProviderFinder get(Context context); List<ProviderInfo> findProviders(); String findMasterProvider(List<ProviderInfo> providerInfos); String findMasterProvider();  }