@Test public void deliverResponse_shouldCallListenerOnSuccess() throws Exception { subject.deliverResponse(mockAdResponse); verify(mockListener).onSuccess(mockAdResponse); }
@Override protected void deliverResponse(final AdResponse adResponse) { mListener.onSuccess(adResponse); }
AdRequest extends Request<AdResponse> { @Override protected void deliverResponse(final AdResponse adResponse) { mListener.onSuccess(adResponse); } }
AdRequest extends Request<AdResponse> { @Override protected void deliverResponse(final AdResponse adResponse) { mListener.onSuccess(adResponse); } AdRequest(@NonNull final String url,
            @NonNull final AdFormat adFormat,
            @Nullable final String adUnitId,
            @NonNull Context context,
            @NonNull final Listener listener); }
AdRequest extends Request<AdResponse> { @Override protected void deliverResponse(final AdResponse adResponse) { mListener.onSuccess(adResponse); } AdRequest(@NonNull final String url,
            @NonNull final AdFormat adFormat,
            @Nullable final String adUnitId,
            @NonNull Context context,
            @NonNull final Listener listener); @NonNull Listener getListener(); @Override Map<String, String> getHeaders(); }
AdRequest extends Request<AdResponse> { @Override protected void deliverResponse(final AdResponse adResponse) { mListener.onSuccess(adResponse); } AdRequest(@NonNull final String url,
            @NonNull final AdFormat adFormat,
            @Nullable final String adUnitId,
            @NonNull Context context,
            @NonNull final Listener listener); @NonNull Listener getListener(); @Override Map<String, String> getHeaders();  }