Examples of EnterWorkspaceEvent


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

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

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