Search in sources :

Example 1 with MediationRewardedVideoAdUnit

use of org.prebid.mobile.rendering.bidding.display.MediationRewardedVideoAdUnit in project prebid-mobile-android by prebid.

the class MoPubMediationUtilsMethodsTest method setup.

@Before
public void setup() {
    MockitoAnnotations.openMocks(this);
    mContext = Robolectric.buildActivity(Activity.class).create().get();
    mMoPubView = mock(MoPubView.class);
    bannerUtils = new MoPubBannerMediationUtils(mMoPubView);
    mMediationBannerAdUnit = new MediationBannerAdUnit(mContext, ID, AD_SIZE, bannerUtils);
    mMoPubInterstitial = mock(MoPubInterstitial.class);
    interstitialUtils = new MoPubInterstitialMediationUtils(mMoPubInterstitial);
    mMediationInterstitialAdUnit = new MediationInterstitialAdUnit(mContext, ID, AD_SIZE, interstitialUtils);
    mMoPubNative = mock(MoPubNative.class);
    nativeUtils = new MoPubNativeMediationUtils(mMoPubNativeKeywords, mMoPubNative);
    mMediationNativeAdUnit = new MediationNativeAdUnit(ID, nativeUtils);
    rewardedUtils = new MoPubRewardedVideoMediationUtils(mMoPubRewardedKeywords);
    mMoPubRewardedAdUnit = new MediationRewardedVideoAdUnit(mContext, ID, rewardedUtils);
}
Also used : MoPubNativeMediationUtils(com.mopub.mediation.MoPubNativeMediationUtils) MediationRewardedVideoAdUnit(org.prebid.mobile.rendering.bidding.display.MediationRewardedVideoAdUnit) MoPubInterstitial(com.mopub.mobileads.MoPubInterstitial) MoPubRewardedVideoMediationUtils(com.mopub.mediation.MoPubRewardedVideoMediationUtils) MoPubNative(com.mopub.nativeads.MoPubNative) MediationNativeAdUnit(org.prebid.mobile.rendering.bidding.display.MediationNativeAdUnit) Activity(android.app.Activity) MoPubInterstitialMediationUtils(com.mopub.mediation.MoPubInterstitialMediationUtils) MediationInterstitialAdUnit(org.prebid.mobile.rendering.bidding.display.MediationInterstitialAdUnit) MediationBannerAdUnit(org.prebid.mobile.rendering.bidding.display.MediationBannerAdUnit) MoPubBannerMediationUtils(com.mopub.mediation.MoPubBannerMediationUtils) MoPubView(com.mopub.mobileads.MoPubView) Before(org.junit.Before)

Aggregations

Activity (android.app.Activity)1 MoPubBannerMediationUtils (com.mopub.mediation.MoPubBannerMediationUtils)1 MoPubInterstitialMediationUtils (com.mopub.mediation.MoPubInterstitialMediationUtils)1 MoPubNativeMediationUtils (com.mopub.mediation.MoPubNativeMediationUtils)1 MoPubRewardedVideoMediationUtils (com.mopub.mediation.MoPubRewardedVideoMediationUtils)1 MoPubInterstitial (com.mopub.mobileads.MoPubInterstitial)1 MoPubView (com.mopub.mobileads.MoPubView)1 MoPubNative (com.mopub.nativeads.MoPubNative)1 Before (org.junit.Before)1 MediationBannerAdUnit (org.prebid.mobile.rendering.bidding.display.MediationBannerAdUnit)1 MediationInterstitialAdUnit (org.prebid.mobile.rendering.bidding.display.MediationInterstitialAdUnit)1 MediationNativeAdUnit (org.prebid.mobile.rendering.bidding.display.MediationNativeAdUnit)1 MediationRewardedVideoAdUnit (org.prebid.mobile.rendering.bidding.display.MediationRewardedVideoAdUnit)1