AdViewController { void loadFailUrl(MoPubErrorCode errorCode) { mIsLoading = false; Log.v("MoPub", "MoPubErrorCode: " + (errorCode == null ? "" : errorCode.toString())); if (mAdConfiguration.getFailUrl() != null) { MoPubLog.d("Loading failover url: " + mAdConfiguration.getFailUrl()); loadNonJavascript(mAdConfiguration.getFailUrl()); } else { adDidFail(MoPubErrorCode.NO_FILL); } } AdViewController(Context context, MoPubView view); static void setShouldHonorServerDimensions(View view); MoPubView getMoPubView(); void loadAd(); void reload(); String getKeywords(); void setKeywords(String keywords); Location getLocation(); void setLocation(Location location); String getAdUnitId(); void setAdUnitId(String adUnitId); void setTimeout(int milliseconds); int getAdWidth(); int getAdHeight(); String getClickthroughUrl(); String getRedirectUrl(); String getResponseString(); boolean getAutorefreshEnabled(); boolean getTesting(); void setTesting(boolean enabled); @Deprecated void customEventDidLoadAd(); @Deprecated void customEventDidFailToLoadAd(); @Deprecated void customEventActionWillBegin(); @Deprecated void setClickthroughUrl(String clickthroughUrl); @Deprecated boolean isFacebookSupported(); @Deprecated void setFacebookSupported(boolean enabled);  }
@Test public void loadFailUrl_shouldAcceptNullErrorCode() throws Exception { subject.loadFailUrl(null); }