@Test public void performSubmitWithFetchAction() { String pausedTag = "pausedTag"; dispatcher.pausedTags.add(pausedTag); assertThat(dispatcher.pausedActions).isEmpty(); FetchAction fetchAction1 = new FetchAction(mockPicasso(), new Request.Builder(URI_1).build(), 0, 0, pausedTag, URI_KEY_1, null); FetchAction fetchAction2 = new FetchAction(mockPicasso(), new Request.Builder(URI_1).build(), 0, 0, pausedTag, URI_KEY_1, null); dispatcher.performSubmit(fetchAction1); dispatcher.performSubmit(fetchAction2); assertThat(dispatcher.pausedActions).hasSize(2); }
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);   }