Search in sources :

Example 1 with StandaloneBannerEventHandler

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);
}
Also used : StandaloneBannerEventHandler(org.prebid.mobile.rendering.bidding.interfaces.StandaloneBannerEventHandler) BidLoader(org.prebid.mobile.rendering.bidding.loader.BidLoader) Test(org.junit.Test)

Aggregations

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