@Test public void testFailure() { final FailureEvent event = mock(FailureEvent.class); when(recordCallback.configuration.getFailureEvent()).thenReturn(event); doCallRealMethod().when(recordCallback).postFailure(any(RetrofitError.class)); doCallRealMethod().when(recordCallback).failure(any(RetrofitError.class)); recordCallback.failure(mock(RetrofitError.class)); verify(recordCallback.configuration).callFailureCallback(); verify(recordCallback.eventProcessor).process(event); }
@Override public void failure(RetrofitError retrofitError) { postFailure(retrofitError); }
RecordCallback extends BaseRecordCallback implements Callback<T> { @Override public void failure(RetrofitError retrofitError) { postFailure(retrofitError); } }
RecordCallback extends BaseRecordCallback implements Callback<T> { @Override public void failure(RetrofitError retrofitError) { postFailure(retrofitError); } protected  RecordCallback(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport);  RecordCallback(SingleRecordConfiguration<T> configuration, EventProcessor bus, HttpReport httpReport, Handler handler); }
RecordCallback extends BaseRecordCallback implements Callback<T> { @Override public void failure(RetrofitError retrofitError) { postFailure(retrofitError); } protected  RecordCallback(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport);  RecordCallback(SingleRecordConfiguration<T> configuration, EventProcessor bus, HttpReport httpReport, Handler handler); void setKey(Object key); Object getKey(); @Override void success(T model, Response response); void synchronousSuccess(T model, Response response); @Override void failure(RetrofitError retrofitError); }
RecordCallback extends BaseRecordCallback implements Callback<T> { @Override public void failure(RetrofitError retrofitError) { postFailure(retrofitError); } protected  RecordCallback(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport);  RecordCallback(SingleRecordConfiguration<T> configuration, EventProcessor bus, HttpReport httpReport, Handler handler); void setKey(Object key); Object getKey(); @Override void success(T model, Response response); void synchronousSuccess(T model, Response response); @Override void failure(RetrofitError retrofitError);  }