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