@Test public void displayWarningForMissingActivities_withMissingActivities_withDebugTrue_shouldShowToast() throws Exception { setDebugMode(true); ManifestUtils.displayWarningForMissingActivities(context, requiredWebViewSdkActivities); assertThat(ShadowToast.getLatestToast()).isNotNull(); final String toastText = ShadowToast.getTextOfLatestToast(); assertThat(toastText).isEqualTo("ERROR: YOUR MOPUB INTEGRATION IS INCOMPLETE.\nCheck logcat and update your AndroidManifest.xml with the correct activities and configuration."); }
@VisibleForTesting static void displayWarningForMissingActivities(@NonNull final Context context, @NonNull final List<Class<? extends Activity>> requiredActivities) { final List<Class<? extends Activity>> undeclaredActivities = filterDeclaredActivities(context, requiredActivities, false); if (undeclaredActivities.isEmpty()) { return; } logWarningToast(context); logMissingActivities(undeclaredActivities); }
ManifestUtils { @VisibleForTesting static void displayWarningForMissingActivities(@NonNull final Context context, @NonNull final List<Class<? extends Activity>> requiredActivities) { final List<Class<? extends Activity>> undeclaredActivities = filterDeclaredActivities(context, requiredActivities, false); if (undeclaredActivities.isEmpty()) { return; } logWarningToast(context); logMissingActivities(undeclaredActivities); } }
ManifestUtils { @VisibleForTesting static void displayWarningForMissingActivities(@NonNull final Context context, @NonNull final List<Class<? extends Activity>> requiredActivities) { final List<Class<? extends Activity>> undeclaredActivities = filterDeclaredActivities(context, requiredActivities, false); if (undeclaredActivities.isEmpty()) { return; } logWarningToast(context); logMissingActivities(undeclaredActivities); } private  ManifestUtils(); }
ManifestUtils { @VisibleForTesting static void displayWarningForMissingActivities(@NonNull final Context context, @NonNull final List<Class<? extends Activity>> requiredActivities) { final List<Class<? extends Activity>> undeclaredActivities = filterDeclaredActivities(context, requiredActivities, false); if (undeclaredActivities.isEmpty()) { return; } logWarningToast(context); logMissingActivities(undeclaredActivities); } private  ManifestUtils(); static void checkWebViewActivitiesDeclared(@NonNull final Context context); static void checkNativeActivitiesDeclared(@NonNull final Context context); static boolean isDebuggable(@NonNull final Context context); }
ManifestUtils { @VisibleForTesting static void displayWarningForMissingActivities(@NonNull final Context context, @NonNull final List<Class<? extends Activity>> requiredActivities) { final List<Class<? extends Activity>> undeclaredActivities = filterDeclaredActivities(context, requiredActivities, false); if (undeclaredActivities.isEmpty()) { return; } logWarningToast(context); logMissingActivities(undeclaredActivities); } private  ManifestUtils(); static void checkWebViewActivitiesDeclared(@NonNull final Context context); static void checkNativeActivitiesDeclared(@NonNull final Context context); static boolean isDebuggable(@NonNull final Context context);  }