CustomEventBannerAdapter implements CustomEventBannerListener { @Override public void onLeaveApplication() { onBannerClicked(); } 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 onLeaveApplication_shouldRegisterClick() throws Exception { subject.onLeaveApplication(); verify(moPubView).registerClick(); }