@Test public void testSynchronousSuccessWithoutCache() { Object object = new Object(); when(recordCallback.configuration.getCache()).thenReturn(null); SuccessEvent event = mock(SuccessEvent.class); when(recordCallback.configuration.getSuccessEvent()).thenReturn(event); doCallRealMethod().when(recordCallback).synchronousSuccess(object, null); recordCallback.synchronousSuccess(object, null); verify(recordCallback.configuration).callSuccessCallback(object); verify(recordCallback, never()).postSuccessEvent(event); }
public void synchronousSuccess(T model, Response response) { success(model, response, false); }
RecordCallback extends BaseRecordCallback implements Callback<T> { public void synchronousSuccess(T model, Response response) { success(model, response, false); } }
RecordCallback extends BaseRecordCallback implements Callback<T> { public void synchronousSuccess(T model, Response response) { success(model, response, false); } 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> { public void synchronousSuccess(T model, Response response) { success(model, response, false); } 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> { public void synchronousSuccess(T model, Response response) { success(model, response, false); } 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);  }