@Test public void onActivityResult_withIncorrectRequestCode_shouldNotCallFinish() throws Exception { final int incorrectRequestCode = 1000; final int expectedResultCode = Activity.RESULT_OK; initializeSubject(); subject.onActivityResult(incorrectRequestCode, expectedResultCode, null); verify(baseVideoViewControllerListener, never()).onFinish(); }
@Override void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (requestCode == MOPUB_BROWSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) { getBaseVideoViewControllerListener().onFinish(); } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Override void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (requestCode == MOPUB_BROWSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) { getBaseVideoViewControllerListener().onFinish(); } } }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Override void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (requestCode == MOPUB_BROWSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) { getBaseVideoViewControllerListener().onFinish(); } } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); }
VastVideoViewController extends BaseVideoViewController implements DownloadTask.DownloadTaskListener { @Override void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (requestCode == MOPUB_BROWSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) { getBaseVideoViewControllerListener().onFinish(); } } 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 { @Override void onActivityResult(final int requestCode, final int resultCode, final Intent data) { if (requestCode == MOPUB_BROWSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) { getBaseVideoViewControllerListener().onFinish(); } } VastVideoViewController(final Context context,
            final Bundle bundle,
            final long broadcastIdentifier,
            final BaseVideoViewControllerListener baseVideoViewControllerListener); @Override boolean backButtonEnabled(); @Override void onComplete(String url, DownloadResponse downloadResponse);  }