Package org.zanata.webtrans.client.events

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


            factories.put(ExitWorkspace.class,
                    new EventFactory<ExitWorkspaceEvent>() {
                        @Override
                        public ExitWorkspaceEvent
                                create(SessionEventData event) {
                            return new ExitWorkspaceEvent(
                                    (HasExitWorkspaceData) event);
                        }
                    });

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


        assertThat(userPanel.getSelectedId(), Matchers.nullValue());
    }

    @Test
    public void onExitWorkspace() {
        ExitWorkspaceEvent event = mock(ExitWorkspaceEvent.class);
        EditorClientId editorClientId = editorClientId();
        Person person = TestFixture.person();
        when(event.getEditorClientId()).thenReturn(editorClientId);
        when(event.getPerson()).thenReturn(person);
        UserPanelSessionItem sessionItem =
                new UserPanelSessionItem(panel, person);
        TransUnit selectedTransUnit = TestFixture.makeTransUnit(1);
        sessionItem.setSelectedId(selectedTransUnit.getId());
        service.getUserSessionMap().put(editorClientId, sessionItem);
View Full Code Here

TOP

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

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.