ShortcutContext.Navigation, true);
}
@Test
public void onPublishWorkspaceChat() {
PublishWorkspaceChatEvent event =
Mockito.mock(PublishWorkspaceChatEvent.class);
when(event.getPersonId()).thenReturn("admin");
when(event.getMsg()).thenReturn("bye");
when(event.getMessageType()).thenReturn(
HasWorkspaceChatData.MESSAGE_TYPE.USER_MSG);
when(event.getTimestamp()).thenReturn("a minute ago");
presenter.onPublishWorkspaceChat(event);
verify(display).appendChat(event.getPersonId(), event.getTimestamp(),
event.getMsg(), event.getMessageType());
}