@Test public void testGetAppAuthority() throws Exception { String expected = "com.owlr"; when(bundle.getString(MetaDataUtils.APP_AUTHORITY)).thenReturn(expected); assertThat(MetaDataUtils.getAppAuthority(context)).isEqualTo(expected); }
@Nullable public static String getAppAuthority(Context context) { Bundle metaData = getMetaData(context); if (metaData != null) { return metaData.getString(APP_AUTHORITY); } return null; }
MetaDataUtils { @Nullable public static String getAppAuthority(Context context) { Bundle metaData = getMetaData(context); if (metaData != null) { return metaData.getString(APP_AUTHORITY); } return null; } }
MetaDataUtils { @Nullable public static String getAppAuthority(Context context) { Bundle metaData = getMetaData(context); if (metaData != null) { return metaData.getString(APP_AUTHORITY); } return null; } private  MetaDataUtils(); }
MetaDataUtils { @Nullable public static String getAppAuthority(Context context) { Bundle metaData = getMetaData(context); if (metaData != null) { return metaData.getString(APP_AUTHORITY); } return null; } private  MetaDataUtils(); @Nullable static String getSharedAuthorityMatcher(Context context); @Nullable static String getSharedPermission(Context context); @Nullable static String getAppAuthority(Context context); }
MetaDataUtils { @Nullable public static String getAppAuthority(Context context) { Bundle metaData = getMetaData(context); if (metaData != null) { return metaData.getString(APP_AUTHORITY); } return null; } private  MetaDataUtils(); @Nullable static String getSharedAuthorityMatcher(Context context); @Nullable static String getSharedPermission(Context context); @Nullable static String getAppAuthority(Context context); static final String APP_AUTHORITY_MATCHER; static final String APP_SHARED_PERMISSION; static final String APP_AUTHORITY; }