@Test public void generateUrlString_shouldNotIncludeDesiredAssetsIfNotSet() throws Exception { subject = new NativeUrlGenerator(context).withAdUnitId(AD_UNIT_ID); String requestString = generateMinimumUrlString(); List<String> desiredAssets = getDesiredAssetsListFromRequestUrlString(requestString); assertThat(desiredAssets.size()).isEqualTo(0); }
@NonNull @Override public NativeUrlGenerator withAdUnitId(final String adUnitId) { mAdUnitId = adUnitId; return this; }
NativeUrlGenerator extends AdUrlGenerator { @NonNull @Override public NativeUrlGenerator withAdUnitId(final String adUnitId) { mAdUnitId = adUnitId; return this; } }
NativeUrlGenerator extends AdUrlGenerator { @NonNull @Override public NativeUrlGenerator withAdUnitId(final String adUnitId) { mAdUnitId = adUnitId; return this; } NativeUrlGenerator(Context context); }
NativeUrlGenerator extends AdUrlGenerator { @NonNull @Override public NativeUrlGenerator withAdUnitId(final String adUnitId) { mAdUnitId = adUnitId; return this; } NativeUrlGenerator(Context context); @NonNull @Override NativeUrlGenerator withAdUnitId(final String adUnitId); @Override String generateUrlString(final String serverHostname); }
NativeUrlGenerator extends AdUrlGenerator { @NonNull @Override public NativeUrlGenerator withAdUnitId(final String adUnitId) { mAdUnitId = adUnitId; return this; } NativeUrlGenerator(Context context); @NonNull @Override NativeUrlGenerator withAdUnitId(final String adUnitId); @Override String generateUrlString(final String serverHostname);  }