@Test public void isAd_loadPositions_withoutLoadingAds_hasNoAds() { subject.handlePositioningLoad(positioning); checkAdPositions(); }
@VisibleForTesting void handlePositioningLoad(@NonNull final MoPubClientPositioning positioning) { PlacementData placementData = PlacementData.fromAdPositioning(positioning); if (mHasReceivedAds) { placeInitialAds(placementData); } else { mPendingPlacementData = placementData; } mHasReceivedPositions = true; }
MoPubStreamAdPlacer { @VisibleForTesting void handlePositioningLoad(@NonNull final MoPubClientPositioning positioning) { PlacementData placementData = PlacementData.fromAdPositioning(positioning); if (mHasReceivedAds) { placeInitialAds(placementData); } else { mPendingPlacementData = placementData; } mHasReceivedPositions = true; } }
MoPubStreamAdPlacer { @VisibleForTesting void handlePositioningLoad(@NonNull final MoPubClientPositioning positioning) { PlacementData placementData = PlacementData.fromAdPositioning(positioning); if (mHasReceivedAds) { placeInitialAds(placementData); } else { mPendingPlacementData = placementData; } mHasReceivedPositions = true; } MoPubStreamAdPlacer(@NonNull final Context context);  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final MoPubServerPositioning adPositioning);  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final MoPubClientPositioning adPositioning); @VisibleForTesting  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final NativeAdSource adSource,
            @NonNull final ImpressionTracker impressionTracker,
            @NonNull final PositioningSource positioningSource); }
MoPubStreamAdPlacer { @VisibleForTesting void handlePositioningLoad(@NonNull final MoPubClientPositioning positioning) { PlacementData placementData = PlacementData.fromAdPositioning(positioning); if (mHasReceivedAds) { placeInitialAds(placementData); } else { mPendingPlacementData = placementData; } mHasReceivedPositions = true; } MoPubStreamAdPlacer(@NonNull final Context context);  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final MoPubServerPositioning adPositioning);  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final MoPubClientPositioning adPositioning); @VisibleForTesting  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final NativeAdSource adSource,
            @NonNull final ImpressionTracker impressionTracker,
            @NonNull final PositioningSource positioningSource); void registerAdRenderer(@NonNull final MoPubAdRenderer adRenderer); void setAdLoadedListener(@Nullable final MoPubNativeAdLoadedListener listener); void loadAds(@NonNull final String adUnitId); void loadAds(@NonNull final String adUnitId,
            @Nullable final RequestParameters requestParameters); void placeAdsInRange(final int startPosition, final int endPosition); boolean isAd(final int position); void clearAds(); void destroy(); @Nullable Object getAdData(final int position); @Nullable View getAdView(final int position, @Nullable final View convertView,
            @Nullable final ViewGroup parent); int removeAdsInRange(int originalStartPosition, int originalEndPosition); int getAdViewTypeCount(); int getAdViewType(final int position); int getOriginalPosition(final int position); int getAdjustedPosition(final int originalPosition); int getOriginalCount(final int count); int getAdjustedCount(final int originalCount); void setItemCount(final int originalCount); void insertItem(final int originalPosition); void removeItem(final int originalPosition); void moveItem(final int originalPosition, final int newPosition); }
MoPubStreamAdPlacer { @VisibleForTesting void handlePositioningLoad(@NonNull final MoPubClientPositioning positioning) { PlacementData placementData = PlacementData.fromAdPositioning(positioning); if (mHasReceivedAds) { placeInitialAds(placementData); } else { mPendingPlacementData = placementData; } mHasReceivedPositions = true; } MoPubStreamAdPlacer(@NonNull final Context context);  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final MoPubServerPositioning adPositioning);  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final MoPubClientPositioning adPositioning); @VisibleForTesting  MoPubStreamAdPlacer(@NonNull final Context context,
            @NonNull final NativeAdSource adSource,
            @NonNull final ImpressionTracker impressionTracker,
            @NonNull final PositioningSource positioningSource); void registerAdRenderer(@NonNull final MoPubAdRenderer adRenderer); void setAdLoadedListener(@Nullable final MoPubNativeAdLoadedListener listener); void loadAds(@NonNull final String adUnitId); void loadAds(@NonNull final String adUnitId,
            @Nullable final RequestParameters requestParameters); void placeAdsInRange(final int startPosition, final int endPosition); boolean isAd(final int position); void clearAds(); void destroy(); @Nullable Object getAdData(final int position); @Nullable View getAdView(final int position, @Nullable final View convertView,
            @Nullable final ViewGroup parent); int removeAdsInRange(int originalStartPosition, int originalEndPosition); int getAdViewTypeCount(); int getAdViewType(final int position); int getOriginalPosition(final int position); int getAdjustedPosition(final int originalPosition); int getOriginalCount(final int count); int getAdjustedCount(final int originalCount); void setItemCount(final int originalCount); void insertItem(final int originalPosition); void removeItem(final int originalPosition); void moveItem(final int originalPosition, final int newPosition); static final int CONTENT_VIEW_TYPE; }