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);
}
Aggregations