@Test public void performSubmitWithFetchActionWithSuccessCompletionCallback() { String pausedTag = "pausedTag"; Callback callback = mockCallback(); FetchAction fetchAction = new FetchAction(mockPicasso(), new Request.Builder(URI_1).build(), 0, 0, pausedTag, URI_KEY_1, callback); dispatcher.performSubmit(fetchAction); fetchAction.complete(bitmap1, MEMORY); verify(callback).onSuccess(); }
void performSubmit(Action action) { performSubmit(action, true); }
Dispatcher { void performSubmit(Action action) { performSubmit(action, true); } }
Dispatcher { void performSubmit(Action action) { performSubmit(action, true); } Dispatcher(Context context, ExecutorService service, Handler mainThreadHandler,
      Downloader downloader, Cache cache, Stats stats); }
Dispatcher { void performSubmit(Action action) { performSubmit(action, true); } Dispatcher(Context context, ExecutorService service, Handler mainThreadHandler,
      Downloader downloader, Cache cache, Stats stats);  }
Dispatcher { void performSubmit(Action action) { performSubmit(action, true); } Dispatcher(Context context, ExecutorService service, Handler mainThreadHandler,
      Downloader downloader, Cache cache, Stats stats);   }