Package org.zanata.webtrans.shared.rpc

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


        TranslationWorkspace workspace =
                translationWorkspaceManager.getOrRegisterWorkspace(action
                        .getWorkspaceId());
        // Send TranslatorStatusUpdate event to client
        TransUnitEdit event =
                new TransUnitEdit(action.getEditorClientId(),
                        action.getPerson(), action.getSelectedTransUnitId());

        workspace.updateUserSelection(action.getEditorClientId(),
                action.getSelectedTransUnitId());
View Full Code Here


        verify(identity).checkLoggedIn();
        verify(translationWorkspace).updateUserSelection(editorClientId,
                selectedTransUnit.getId());
        verify(translationWorkspace).publish(eventCaptor.capture());
        TransUnitEdit transUnitEdit = eventCaptor.getValue();
        assertThat(transUnitEdit.getEditorClientId(),
                Matchers.sameInstance(editorClientId));
        assertThat(transUnitEdit.getPerson(), Matchers.sameInstance(person));
        assertThat(transUnitEdit.getSelectedTransUnitId(),
                Matchers.sameInstance(selectedTransUnit.getId()));
    }
View Full Code Here

TOP

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

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.