CustomEventInterstitialAdapter implements CustomEventInterstitialListener { @Override public void onInterstitialLoaded() { if (isInvalidated()) { return; } cancelTimeout(); if (mCustomEventInterstitialAdapterListener != null) { mCustomEventInterstitialAdapterListener.onCustomEventInterstitialLoaded(); } } 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 onInterstitialLoaded_shouldSignalAdapterListener() throws Exception { subject.onInterstitialLoaded(); verify(interstitialAdapterListener).onCustomEventInterstitialLoaded(); }