CustomEventBannerAdapter implements CustomEventBannerListener { @Override public void onBannerClicked() { if (isInvalidated()) return; if (mMoPubView != null) mMoPubView.registerClick(); } CustomEventBannerAdapter(MoPubView moPubView, String className, String classData); @Override void onBannerLoaded(View bannerView); @Override void onBannerFailed(MoPubErrorCode errorCode); @Override void onBannerExpanded(); @Override void onBannerCollapsed(); @Override void onBannerClicked(); @Override void onLeaveApplication(); static final int DEFAULT_BANNER_TIMEOUT_DELAY; }
@Test public void onBannerClicked_shouldRegisterClick() throws Exception { subject.onBannerClicked(); verify(moPubView).registerClick(); }