@Test public void onCompletion_whenPlaybackError_shouldNotPingCompletionTrackers() throws Exception { VastVideoConfiguration vastVideoConfiguration = new VastVideoConfiguration(); vastVideoConfiguration.setDiskMediaFileUrl("disk_video_path"); vastVideoConfiguration.addCompleteTrackers(Arrays.asList("complete_1", "complete_2")); bundle.putSerializable(VAST_VIDEO_CONFIGURATION, vastVideoConfiguration); initializeSubject(); subject.setVideoError(); getShadowVideoView().getOnCompletionListener().onCompletion(null); verify(mockRequestQueue, never()).add(argThat(isUrl("complete_1"))); verify(mockRequestQueue, never()).add(argThat(isUrl("complete_2"))); }
@Deprecated @VisibleForTesting void setVideoError() { mVideoError = true; }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setVideoError() { mVideoError = true; } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setVideoError() { mVideoError = true; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setVideoError() { mVideoError = true; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting void setVideoError() { mVideoError = true; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse);  }