@Test @SuppressWarnings("unchecked") public void testSuccessWithCache() { final Object model = new Object(); DeleteCallback<Object> deleteCallback = DeleteCallback.createFromConfiguration(configuration, eventProcessor, null, model); when(configuration.getSuccessEvent()).thenReturn(new SuccessEvent()); when(deleteCallback.configuration.getCache()).thenReturn(cache); deleteCallback.success(new Object(), null); verify(cache).delete(model); }
public static <T> DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model){ return new DeleteCallback<>(configuration, eventProcessor, httpReport, model); }
DeleteCallback extends RecordCallback<T> { public static <T> DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model){ return new DeleteCallback<>(configuration, eventProcessor, httpReport, model); } }
DeleteCallback extends RecordCallback<T> { public static <T> DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model){ return new DeleteCallback<>(configuration, eventProcessor, httpReport, model); } protected  DeleteCallback(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model); }
DeleteCallback extends RecordCallback<T> { public static <T> DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model){ return new DeleteCallback<>(configuration, eventProcessor, httpReport, model); } protected  DeleteCallback(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model); static DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport,
                                                                T model); }
DeleteCallback extends RecordCallback<T> { public static <T> DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model){ return new DeleteCallback<>(configuration, eventProcessor, httpReport, model); } protected  DeleteCallback(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport, T model); static DeleteCallback<T> createFromConfiguration(SingleRecordConfiguration<T> configuration, EventProcessor eventProcessor, HttpReport httpReport,
                                                                T model);  }