Package org.zanata.webtrans.client.events

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


            appPresenter.selectDocument(docId);
        }
        Log.info("[gwt-history] document id: " + docId);

        if (docId != null) {
            eventBus.fireEvent(new DocumentSelectionEvent(documentListPresenter
                    .getDocumentInfo(docId)));
        }
    }
View Full Code Here


    @Test
    public void testOnDocumentSelected() throws Exception {
        DocumentInfo documentInfo = TestFixture.documentInfo(2, "");
        DocumentId documentId = documentInfo.getId();
        service.onDocumentSelected(new DocumentSelectionEvent(documentInfo));

        verify(dispatcher).execute(actionCaptor.capture(),
                resultCaptor.capture());
        GetTransUnitList getTransUnitList = actionCaptor.getValue();
        assertThat(getTransUnitList.getDocumentId(),
View Full Code Here

        service.processForAppPresenter(document.getId());

        verify(appPresenter).selectDocument(document.getId());
        verify(eventBus).fireEvent(eventCaptor.capture());
        DocumentSelectionEvent documentSelectionEvent =
                TestFixture.extractFromEvents(eventCaptor.getAllValues(),
                        DocumentSelectionEvent.class);
        assertThat(documentSelectionEvent.getDocumentId(),
                Matchers.equalTo(document.getId()));

    }
View Full Code Here

TOP

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

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.