@Test public void urlHandler_withEmptyQueryParametersInShareTweetUrl_shouldCallUrlHandlingFailed() { final String url = "mopubshare: new UrlHandler.Builder() .withSupportedUrlActions(HANDLE_SHARE_TWEET) .withResultActions(mockResultActions) .withMoPubSchemeListener(mockMoPubSchemeListener) .build().handleUrl(context, url); verify(mockResultActions).urlHandlingFailed(url, HANDLE_SHARE_TWEET); verifyNoMoreCallbacks(); verifyNoStartedActivity(); }
public void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl) { handleUrl(context, destinationUrl, true); }
UrlHandler { public void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl) { handleUrl(context, destinationUrl, true); } }
UrlHandler { public void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl) { handleUrl(context, destinationUrl, true); } private  UrlHandler(
            @NonNull final EnumSet<UrlAction> supportedUrlActions,
            @NonNull final ResultActions resultActions,
            @NonNull final MoPubSchemeListener moPubSchemeListener,
            final boolean skipShowMoPubBrowser); }
UrlHandler { public void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl) { handleUrl(context, destinationUrl, true); } private  UrlHandler(
            @NonNull final EnumSet<UrlAction> supportedUrlActions,
            @NonNull final ResultActions resultActions,
            @NonNull final MoPubSchemeListener moPubSchemeListener,
            final boolean skipShowMoPubBrowser); void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl); void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl,
            final boolean fromUserInteraction); }
UrlHandler { public void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl) { handleUrl(context, destinationUrl, true); } private  UrlHandler(
            @NonNull final EnumSet<UrlAction> supportedUrlActions,
            @NonNull final ResultActions resultActions,
            @NonNull final MoPubSchemeListener moPubSchemeListener,
            final boolean skipShowMoPubBrowser); void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl); void handleUrl(@NonNull final Context context, @NonNull final String destinationUrl,
            final boolean fromUserInteraction);  }