Examples of PublishWorkspaceChat


Examples of org.zanata.webtrans.shared.rpc.PublishWorkspaceChat

        // Send PublishWorkspaceChat event to client

        Date currentDate = new Date();
        SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy h:mm:ss");

        PublishWorkspaceChat event =
                new PublishWorkspaceChat(action.getPerson(),
                        formatter.format(currentDate), action.getMsg(),
                        action.getMessageType());
        workspace.publish(event);

        return new NoOpResult();
View Full Code Here

Examples of org.zanata.webtrans.shared.rpc.PublishWorkspaceChat

        handler.execute(action, null);

        verify(identity).checkLoggedIn();
        verify(translationWorkspace).publish(eventCaptor.capture());
        PublishWorkspaceChat chat = eventCaptor.getValue();
        assertThat(chat.getPersonId(), Matchers.equalTo("admin"));
        assertThat(chat.getMsg(), Matchers.equalTo("hi"));
        assertThat(chat.getMessageType(),
                Matchers.equalTo(HasWorkspaceChatData.MESSAGE_TYPE.USER_MSG));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.