Package org.zanata.webtrans.shared.rpc

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


        users = Maps.newHashMap();
    }

    @Test
    public void testExecute() throws Exception {
        GetTranslatorList action = GetTranslatorList.ACTION;
        WorkspaceId workspaceId = TestFixture.workspaceId();
        Person person = TestFixture.person();
        EditorClientId editorClientId = new EditorClientId("sid", 1);
        action.setWorkspaceId(workspaceId);
        when(translationWorkspaceManager.getOrRegisterWorkspace(workspaceId))
                .thenReturn(translationWorkspace);
        users.put(editorClientId, new PersonSessionDetails(person, null));
        when(translationWorkspace.getUsers()).thenReturn(users);
        when(accountDAO.getByUsername(person.getId().toString())).thenReturn(
View Full Code Here


            AsyncCallback<ActivateWorkspaceResult> gwcCallback =
                    (AsyncCallback<ActivateWorkspaceResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyActivateWorkspaceCommand(gwcAction, gwcCallback));
        } else if (action instanceof GetTranslatorList) {
            final GetTranslatorList _action = (GetTranslatorList) action;
            AsyncCallback<GetTranslatorListResult> _callback =
                    (AsyncCallback<GetTranslatorListResult>) callback;
            Scheduler.get().scheduleDeferred(
                    new DummyGetTranslatorListCommand(_action, _callback));
        } else if (action instanceof GetTranslationMemory) {
View Full Code Here

TOP

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

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.