Package org.zanata.webtrans.client.events

Examples of org.zanata.webtrans.client.events.EnterWorkspaceEvent


            factories.put(EnterWorkspace.class,
                    new EventFactory<EnterWorkspaceEvent>() {
                        @Override
                        public EnterWorkspaceEvent
                                create(SessionEventData event) {
                            return new EnterWorkspaceEvent(
                                    (HasEnterWorkspaceData) event);
                        }
                    });

            factories.put(WorkspaceContextUpdate.class,
View Full Code Here


                .getSelectedId(), Matchers.sameInstance(transUnit.getId()));
    }

    @Test
    public void onEnterWorkspace() {
        EnterWorkspaceEvent event = mock(EnterWorkspaceEvent.class);
        EditorClientId editorClientId = editorClientId();
        Person person = TestFixture.person();
        when(event.getEditorClientId()).thenReturn(editorClientId);
        when(event.getPerson()).thenReturn(person);
        when(workspaceUsersPresenter.addNewUser(person)).thenReturn(panel);
        when(distinctColor.getOrCreateColor(editorClientId)).thenReturn("red");

        service.onEnterWorkspace(event);
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.events.EnterWorkspaceEvent

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.