CommitPresenter extends SubversionActionPresenter implements ActionDelegate { public void show() { loadAllChanges(); } @Inject  CommitPresenter(final AppContext appContext,
                           final CommitView view,
                           final DtoUnmarshallerFactory dtoUnmarshallerFactory,
                           final EventBus eventBus,
                           final NotificationManager notificationManager,
                           final RawOutputPresenter console,
                           final SubversionExtensionLocalizationConstants constants,
                           final SubversionClientService subversionService,
                           final WorkspaceAgent workspaceAgent,
                           final ProjectExplorerPresenter projectExplorerPart,
                           final DiffViewerPresenter diffViewerPresenter); void show(); @Override void onCommitModeChanged(); @Override void onCancelClicked(); @Override void onCommitClicked(); @Override void showDiff(String path);  }
@Test public void testCommitViewShouldLoadAllChanges() throws Exception { CLIOutputResponse response = mock(CLIOutputResponse.class); when(response.getOutput()).thenReturn(Collections.EMPTY_LIST); presenter.show(); verify(service).status(eq("/plugin-svn-test"), anyListOf(String.class), isNull(String.class), eq(false), eq(false), eq(false), eq(true), eq(false), isNull(List.class), asyncRequestCallbackStatusCaptor.capture()); AsyncRequestCallback<CLIOutputResponse> requestCallback = asyncRequestCallbackStatusCaptor.getValue(); GwtReflectionUtils.callPrivateMethod(requestCallback, "onSuccess", response); verify(view).setChangesList(anyListOf(StatusItem.class)); }