Package org.zanata.webtrans.shared.rpc

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


        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

Related Classes of org.zanata.webtrans.shared.rpc.PublishWorkspaceChat

Copyright © 2018 www.massapicom. 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.