Search in sources :

Example 1 with StandaloneRewardedVideoEventHandler

use of org.prebid.mobile.rendering.bidding.interfaces.StandaloneRewardedVideoEventHandler in project prebid-mobile-android by prebid.

the class RewardedAdUnitTest method createRewardedAdUnitNoEventHandler_InstanceCreatedStandaloneEventHandlerProvidedBidLoaderIsNotNull.

@Test
public void createRewardedAdUnitNoEventHandler_InstanceCreatedStandaloneEventHandlerProvidedBidLoaderIsNotNull() {
    RewardedAdUnit rewardedAdUnit = new RewardedAdUnit(mContext, CONFIGURATION_ID);
    Object eventHandler = WhiteBox.getInternalState(rewardedAdUnit, "mEventHandler");
    BidLoader bidLoader = ((BidLoader) WhiteBox.getInternalState(rewardedAdUnit, "mBidLoader"));
    assertNotNull(rewardedAdUnit);
    assertTrue(eventHandler instanceof StandaloneRewardedVideoEventHandler);
    assertNotNull(bidLoader);
}
Also used : BidLoader(org.prebid.mobile.rendering.bidding.loader.BidLoader) StandaloneRewardedVideoEventHandler(org.prebid.mobile.rendering.bidding.interfaces.StandaloneRewardedVideoEventHandler) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 StandaloneRewardedVideoEventHandler (org.prebid.mobile.rendering.bidding.interfaces.StandaloneRewardedVideoEventHandler)1 BidLoader (org.prebid.mobile.rendering.bidding.loader.BidLoader)1