Search in sources :

Example 6 with RewardedVideoEventListener

use of org.prebid.mobile.rendering.bidding.listeners.RewardedVideoEventListener in project prebid-mobile-android by prebid.

the class RewardedAdUnitTest method onPrebidSdkWinAndWinnerBidIsNull_AdStatusReadyForLoadNotifyErrorListener.

// endregion ======================= BidRequestListener tests
// region ================= EventListener tests
@Test
public void onPrebidSdkWinAndWinnerBidIsNull_AdStatusReadyForLoadNotifyErrorListener() {
    final RewardedVideoEventListener eventListener = getEventListener();
    eventListener.onPrebidSdkWin();
    verify(mMockRewardedAdUnitListener, times(1)).onAdFailed(eq(mRewardedAdUnit), any(AdException.class));
    assertEquals(READY_FOR_LOAD, mRewardedAdUnit.getAdUnitState());
}
Also used : RewardedVideoEventListener(org.prebid.mobile.rendering.bidding.listeners.RewardedVideoEventListener) AdException(org.prebid.mobile.rendering.errors.AdException) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 RewardedVideoEventListener (org.prebid.mobile.rendering.bidding.listeners.RewardedVideoEventListener)6 AdException (org.prebid.mobile.rendering.errors.AdException)3 Bid (org.prebid.mobile.rendering.bidding.data.bid.Bid)1 BidResponse (org.prebid.mobile.rendering.bidding.data.bid.BidResponse)1 InterstitialController (org.prebid.mobile.rendering.bidding.display.InterstitialController)1