Package org.zanata.webtrans.client.events

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


        if (display.getCachedState() != ContentState.Rejected) {
            TransUnitSaveEvent event =
                    new TransUnitSaveEvent(getNewTargets(),
                            ContentState.Rejected, display.getId(),
                            display.getVerNum(), display.getCachedTargets());
            eventBus.fireEvent(new CommentBeforeSaveEvent(event));
        }
    }
View Full Code Here


        presenter.setStatesForTesting(selectedTU.getId(), 0, display);

        presenter.rejectTranslation(selectedTU.getId());

        verify(eventBus).fireEvent(eventCaptor.capture());
        CommentBeforeSaveEvent commentBeforeSaveEvent =
                extractFromEvents(eventCaptor.getAllValues(),
                        CommentBeforeSaveEvent.class);
        assertThat(commentBeforeSaveEvent.getSaveEvent().getStatus(),
                Matchers.equalTo(ContentState.Rejected));
    }
View Full Code Here

TOP

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

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.