@Test public void moPubNativeNetworkListener_onNativeFail_maxRetryTime_shouldResetInflight_shouldResetRetryTime_shouldNotPostDelayedRunnable() { subject.mRequestInFlight = true; subject.mRetryTimeMilliseconds = maxRetryTime; subject.getMoPubNativeNetworkListener().onNativeFail(NativeErrorCode.UNSPECIFIED); assertThat(subject.mRequestInFlight).isEqualTo(false); assertThat(subject.mRetryInFlight).isEqualTo(false); assertThat(subject.mRetryTimeMilliseconds).isEqualTo(defaultRetryTime); verify(mockReplenishCacheHandler, never()).postDelayed(any(Runnable.class), anyLong()); }
@NonNull @Deprecated @VisibleForTesting MoPubNativeNetworkListener getMoPubNativeNetworkListener() { return mMoPubNativeNetworkListener; }
NativeAdSource { @NonNull @Deprecated @VisibleForTesting MoPubNativeNetworkListener getMoPubNativeNetworkListener() { return mMoPubNativeNetworkListener; } }
NativeAdSource { @NonNull @Deprecated @VisibleForTesting MoPubNativeNetworkListener getMoPubNativeNetworkListener() { return mMoPubNativeNetworkListener; } NativeAdSource(); @VisibleForTesting  NativeAdSource(@NonNull final List<TimestampWrapper<NativeResponse>> nativeAdCache,
            @NonNull final Handler replenishCacheHandler); }
NativeAdSource { @NonNull @Deprecated @VisibleForTesting MoPubNativeNetworkListener getMoPubNativeNetworkListener() { return mMoPubNativeNetworkListener; } NativeAdSource(); @VisibleForTesting  NativeAdSource(@NonNull final List<TimestampWrapper<NativeResponse>> nativeAdCache,
            @NonNull final Handler replenishCacheHandler);  }
NativeAdSource { @NonNull @Deprecated @VisibleForTesting MoPubNativeNetworkListener getMoPubNativeNetworkListener() { return mMoPubNativeNetworkListener; } NativeAdSource(); @VisibleForTesting  NativeAdSource(@NonNull final List<TimestampWrapper<NativeResponse>> nativeAdCache,
            @NonNull final Handler replenishCacheHandler);   }