@Test public void onError_shouldFireVideoErrorAndReturnFalse() throws Exception { initializeSubject(); Intent expectedIntent = getIntentForActionAndIdentifier(ACTION_INTERSTITIAL_FAIL, testBroadcastIdentifier); boolean result = getShadowVideoView().getOnErrorListener().onError(null, 0, 0); Robolectric.getUiThreadScheduler().unPause(); assertThat(result).isFalse(); verify(broadcastReceiver).onReceive(any(Context.class), eq(expectedIntent)); assertThat(subject.getVideoError()).isTrue(); }
@Deprecated @VisibleForTesting boolean getVideoError() { return mVideoError; }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting boolean getVideoError() { return mVideoError; } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting boolean getVideoError() { return mVideoError; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Deprecated @VisibleForTesting boolean getVideoError() { return mVideoError; } 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 boolean getVideoError() { return mVideoError; } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse);  }