Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
wrap long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jul 19, 2013
1 parent fbdcc1e commit 6096ea7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -134,7 +134,9 @@ public void beforeMethod()
when(userOptionsService.getConfigHolder()).thenReturn(configHolder);

userWorkspaceContext = TestFixture.userWorkspaceContext();
presenter = new TargetContentsPresenter(displayProvider, editorTranslators, eventBus, tableEditorMessages, sourceContentPresenter, userWorkspaceContext, editorKeyShortcuts, historyPresenter, userOptionsService, saveAsApprovedConfirmation);
presenter = new TargetContentsPresenter(displayProvider, editorTranslators, eventBus,
tableEditorMessages, sourceContentPresenter, userWorkspaceContext, editorKeyShortcuts,
historyPresenter, userOptionsService, saveAsApprovedConfirmation);

verify(eventBus).addHandler(UserConfigChangeEvent.TYPE, presenter);
verify(eventBus).addHandler(RequestValidationEvent.getType(), presenter);
Expand Down
Expand Up @@ -327,7 +327,8 @@ public void willDetectSaveDoneByAnotherUserAndCurrentUserHasUnsavedChange()
ArgumentCaptor<TransHistoryItem> transHistoryCaptor = ArgumentCaptor.forClass(TransHistoryItem.class);
InOrder inOrder = Mockito.inOrder(targetContentsPresenter, translationHistoryPresenter);
inOrder.verify(translationHistoryPresenter).popupAndShowLoading("please resolve conflict");
inOrder.verify(translationHistoryPresenter).displayEntries(transHistoryCaptor.capture(), eq(Collections.<TransHistoryItem>emptyList()), eq(Collections.<ReviewComment>emptyList()));
inOrder.verify(translationHistoryPresenter).displayEntries(transHistoryCaptor.capture(),
eq(Collections.<TransHistoryItem>emptyList()), eq(Collections.<ReviewComment>emptyList()));
assertThat(transHistoryCaptor.getValue().getVersionNum(), Matchers.equalTo(updatedTransUnit.getVerNum().toString()));
assertThat(transHistoryCaptor.getValue().getContents(), Matchers.equalTo(updatedTransUnit.getTargets()));
inOrder.verify(targetContentsPresenter).updateRow(updatedTransUnit);
Expand Down

0 comments on commit 6096ea7

Please sign in to comment.