@Test public void showInterstitial_withMinimumExtras_shouldStartMoPubActivityWithDefaults() throws Exception { subject.loadInterstitial(context, customEventInterstitialListener, localExtras, serverExtras); subject.showInterstitial(); Intent nextStartedActivity = Robolectric.getShadowApplication().getNextStartedActivity(); assertThat(nextStartedActivity.getStringExtra(HTML_RESPONSE_BODY_KEY)).isEqualTo(expectedResponse); assertThat(nextStartedActivity.getBooleanExtra(SCROLLABLE_KEY, false)).isFalse(); assertThat(nextStartedActivity.getStringExtra(REDIRECT_URL_KEY)).isNull(); assertThat(nextStartedActivity.getStringExtra(CLICKTHROUGH_URL_KEY)).isNull(); assertThat(nextStartedActivity.getFlags() & Intent.FLAG_ACTIVITY_NEW_TASK).isNotEqualTo(0); assertThat(nextStartedActivity.getComponent().getClassName()).isEqualTo("com.mopub.mobileads.MoPubActivity"); }
@Override public void showInterstitial() { MoPubActivity.start(mContext, mHtmlData, mAdReport, mIsScrollable, mRedirectUrl, mClickthroughUrl, mOrientation, mBroadcastIdentifier); }
HtmlInterstitial extends ResponseBodyInterstitial { @Override public void showInterstitial() { MoPubActivity.start(mContext, mHtmlData, mAdReport, mIsScrollable, mRedirectUrl, mClickthroughUrl, mOrientation, mBroadcastIdentifier); } }
HtmlInterstitial extends ResponseBodyInterstitial { @Override public void showInterstitial() { MoPubActivity.start(mContext, mHtmlData, mAdReport, mIsScrollable, mRedirectUrl, mClickthroughUrl, mOrientation, mBroadcastIdentifier); }  }
HtmlInterstitial extends ResponseBodyInterstitial { @Override public void showInterstitial() { MoPubActivity.start(mContext, mHtmlData, mAdReport, mIsScrollable, mRedirectUrl, mClickthroughUrl, mOrientation, mBroadcastIdentifier); }  @Override void showInterstitial(); }
HtmlInterstitial extends ResponseBodyInterstitial { @Override public void showInterstitial() { MoPubActivity.start(mContext, mHtmlData, mAdReport, mIsScrollable, mRedirectUrl, mClickthroughUrl, mOrientation, mBroadcastIdentifier); }  @Override void showInterstitial();  }