use of org.prebid.mobile.rendering.views.AdViewManagerListener in project prebid-mobile-android by prebid.
the class DisplayViewTest method whenAdViewManagerListenerAdLoaded_NotifyListenerOnAdLoaded.
@Test
public void whenAdViewManagerListenerAdLoaded_NotifyListenerOnAdLoaded() throws IllegalAccessException {
AdViewManagerListener adViewManagerListener = getAdViewManagerListener();
adViewManagerListener.adLoaded(mock(AdDetails.class));
verify(mMockDisplayViewListener).onAdLoaded();
}
use of org.prebid.mobile.rendering.views.AdViewManagerListener in project prebid-mobile-android by prebid.
the class DisplayViewTest method whenAdViewManagerListenerViewReadyForImmediateDisplay_NotifyListenerOnAdDisplayed.
@Test
public void whenAdViewManagerListenerViewReadyForImmediateDisplay_NotifyListenerOnAdDisplayed() throws IllegalAccessException {
AdViewManagerListener adViewManagerListener = getAdViewManagerListener();
adViewManagerListener.viewReadyForImmediateDisplay(mock(View.class));
verify(mMockDisplayViewListener).onAdDisplayed();
}
use of org.prebid.mobile.rendering.views.AdViewManagerListener in project prebid-mobile-android by prebid.
the class DisplayViewTest method whenAdViewManagerListenerCreativeDidCollapse_NotifyListenerOnAdClosed.
@Test
public void whenAdViewManagerListenerCreativeDidCollapse_NotifyListenerOnAdClosed() throws IllegalAccessException {
AdViewManagerListener adViewManagerListener = getAdViewManagerListener();
adViewManagerListener.creativeCollapsed();
verify(mMockDisplayViewListener).onAdClosed();
}
use of org.prebid.mobile.rendering.views.AdViewManagerListener in project prebid-mobile-android by prebid.
the class DisplayViewTest method whenAdViewManagerListenerFailedToLoad_NotifyListenerOnAdFailed.
@Test
public void whenAdViewManagerListenerFailedToLoad_NotifyListenerOnAdFailed() throws IllegalAccessException {
AdViewManagerListener adViewManagerListener = getAdViewManagerListener();
adViewManagerListener.failedToLoad(new AdException(AdException.INTERNAL_ERROR, "Test"));
verify(mMockDisplayViewListener).onAdFailed(any(AdException.class));
}
use of org.prebid.mobile.rendering.views.AdViewManagerListener in project prebid-mobile-android by prebid.
the class DisplayViewTest method whenAdViewManagerListenerCreativeWasClicked_NotifyListenerOnAdClicked.
@Test
public void whenAdViewManagerListenerCreativeWasClicked_NotifyListenerOnAdClicked() throws IllegalAccessException {
AdViewManagerListener adViewManagerListener = getAdViewManagerListener();
adViewManagerListener.creativeClicked("");
verify(mMockDisplayViewListener).onAdClicked();
}
Aggregations