This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix test

  • Loading branch information...
aeng committed Sep 7, 2012
1 parent 1bceed5 commit 5d2a5b207ba55d8a6516e6678c86818e73623e89
@@ -100,7 +100,7 @@ public GlossaryDetailsPresenter(final Display display, final EventBus eventBus,
this.dispatcher = dispatcher;
this.messages = messages;
this.userWorkspaceContext = userWorkspaceContext;
-
+
registerHandler(display.getDismissButton().addClickHandler(new ClickHandler()
{
@Override
@@ -88,7 +88,6 @@ public void show(final TransMemoryResultItem item)
// request TM details from the server
dispatcher.execute(new GetTransMemoryDetailsAction(item.getSourceIdList()), new AsyncCallback<TransMemoryDetailsList>()
{
-
@Override
public void onFailure(Throwable caught)
{
@@ -490,6 +490,11 @@ protected void setDefaultBindExpectations()
expect(mockUserWorkspaceContext.hasReadOnlyAccess()).andReturn(workspaceIsReadOnly).anyTimes();
mockDisplay.setReplaceAllButtonVisible(!workspaceIsReadOnly);
mockDisplay.setReplaceAllButtonEnabled(false);
+
+ mockDisplay.addSearchFieldsSelect("search target", "target");
+ mockDisplay.addSearchFieldsSelect("search source", "source");
+ mockDisplay.addSearchFieldsSelect("search both", "both");
+
expect(mockKeyShortcutPresenter.register(capture(capturedKeyShortcuts))).andReturn(mockHandlerRegistration()).times(TOTAL_KEY_SHORTCUTS);
}

0 comments on commit 5d2a5b2

Please sign in to comment.