Search in sources :

Example 1 with StandaloneInterstitialEventHandler

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

the class InterstitialAdUnitTest method createInterstitialAdUnitNoEventHandler_InstanceCreatedStandaloneEventHandlerProvidedBidLoaderIsNotNull.

@Test
public void createInterstitialAdUnitNoEventHandler_InstanceCreatedStandaloneEventHandlerProvidedBidLoaderIsNotNull() {
    InterstitialAdUnit interstitialAdUnit = new InterstitialAdUnit(mContext, CONFIGURATION_ID, AdUnitFormat.VIDEO);
    Object eventHandler = WhiteBox.getInternalState(interstitialAdUnit, "mEventHandler");
    BidLoader bidLoader = ((BidLoader) WhiteBox.getInternalState(interstitialAdUnit, "mBidLoader"));
    assertNotNull(interstitialAdUnit);
    assertTrue(eventHandler instanceof StandaloneInterstitialEventHandler);
    assertNotNull(bidLoader);
}
Also used : BidLoader(org.prebid.mobile.rendering.bidding.loader.BidLoader) StandaloneInterstitialEventHandler(org.prebid.mobile.rendering.bidding.interfaces.StandaloneInterstitialEventHandler) Test(org.junit.Test)

Aggregations

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