Examples of DocumentSelectionEvent


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

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

    @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

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

        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
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.