use of org.prebid.mobile.rendering.bidding.interfaces.StandaloneBannerEventHandler in project prebid-mobile-android by prebid.
the class BannerViewTest method createPrebidBannerViewNoEventHandler_InstanceCreatedAndBidLoaderIsNotNullAndStandaloneEventHandlerProvided.
@Test
public void createPrebidBannerViewNoEventHandler_InstanceCreatedAndBidLoaderIsNotNullAndStandaloneEventHandlerProvided() throws IllegalAccessException {
BannerView bannerView = new BannerView(mMockContext, AD_UNIT_ID, AD_SIZE);
Object eventHandler = WhiteBox.field(BannerView.class, "mEventHandler").get(bannerView);
BidLoader bidLoader = ((BidLoader) WhiteBox.field(BannerView.class, "mBidLoader").get(bannerView));
assertNotNull(bannerView);
assertTrue(eventHandler instanceof StandaloneBannerEventHandler);
assertNotNull(bidLoader);
}
Aggregations