CustomEventInterstitialAdapter implements CustomEventInterstitialListener { void showInterstitial() { if (isInvalidated() || mCustomEventInterstitial == null) return; mCustomEventInterstitial.showInterstitial(); } CustomEventInterstitialAdapter(final MoPubInterstitial moPubInterstitial, final String className, final String jsonParams); @Override void onInterstitialLoaded(); @Override void onInterstitialFailed(MoPubErrorCode errorCode); @Override void onInterstitialShown(); @Override void onInterstitialClicked(); @Override void onLeaveApplication(); @Override void onInterstitialDismissed(); static final int DEFAULT_INTERSTITIAL_TIMEOUT_DELAY; }
@Test public void showInterstitial_shouldCallCustomEventInterstitialShowInterstitial() throws Exception { subject.showInterstitial(); verify(interstitial).showInterstitial(); }