Package org.zanata.webtrans.shared.rpc

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


    }

    public static void exitWorkspace() {
        injector.getDispatcher().execute(
                new ExitWorkspaceAction(identity.getPerson()),
                new NoOpAsyncCallback<NoOpResult>());
    }
View Full Code Here


        Person person = TestFixture.person();
        EditorClientId editorClientId = new EditorClientId("sessionId", 1);
        WorkspaceId workspaceId = TestFixture.workspaceId();
        when(translationWorkspaceManager.getOrRegisterWorkspace(workspaceId))
                .thenReturn(translationWorkspace);
        ExitWorkspaceAction action = new ExitWorkspaceAction(person);
        action.setEditorClientId(editorClientId);
        action.setWorkspaceId(workspaceId);

        handler.execute(action, null);

        verify(identity).checkLoggedIn();
        verify(translationWorkspace).removeEditorClient(
                action.getEditorClientId());
    }
View Full Code Here

TOP

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

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.