@Test public void onPostExecute_whenOnDownloadCompleteListenerIsNull_shouldNotBlowUp() throws Exception { subject = new VastVideoDownloadTask(null); subject.onPostExecute(true); subject.onPostExecute(false); }
@Override protected void onPostExecute(final Boolean success) { if (mVastVideoDownloadTaskListener != null) { mVastVideoDownloadTaskListener.onComplete(success); } }
VastVideoDownloadTask extends AsyncTask<String, Void, Boolean> { @Override protected void onPostExecute(final Boolean success) { if (mVastVideoDownloadTaskListener != null) { mVastVideoDownloadTaskListener.onComplete(success); } } }
VastVideoDownloadTask extends AsyncTask<String, Void, Boolean> { @Override protected void onPostExecute(final Boolean success) { if (mVastVideoDownloadTaskListener != null) { mVastVideoDownloadTaskListener.onComplete(success); } } VastVideoDownloadTask(final VastVideoDownloadTaskListener listener); }
VastVideoDownloadTask extends AsyncTask<String, Void, Boolean> { @Override protected void onPostExecute(final Boolean success) { if (mVastVideoDownloadTaskListener != null) { mVastVideoDownloadTaskListener.onComplete(success); } } VastVideoDownloadTask(final VastVideoDownloadTaskListener listener);  }
VastVideoDownloadTask extends AsyncTask<String, Void, Boolean> { @Override protected void onPostExecute(final Boolean success) { if (mVastVideoDownloadTaskListener != null) { mVastVideoDownloadTaskListener.onComplete(success); } } VastVideoDownloadTask(final VastVideoDownloadTaskListener listener);   }