Package org.zanata.webtrans.shared.model

Examples of org.zanata.webtrans.shared.model.ReviewComment


        return Lists.transform(hComments,
                new Function<HTextFlowTargetReviewComment, ReviewComment>() {
                    @Override
                    public ReviewComment apply(
                            HTextFlowTargetReviewComment input) {
                        return new ReviewComment(new ReviewCommentId(input
                                .getId()), input.getComment(), input
                                .getCommenterName(), input.getCreationDate(),
                                input.getTargetVersion());
                    }
                });
View Full Code Here


            throw new ActionException("comment can not be blank");
        }
    }

    private static ReviewComment toDTO(HTextFlowTargetReviewComment hComment) {
        return new ReviewComment(new ReviewCommentId(hComment.getId()),
                hComment.getComment(), hComment.getCommenterName(),
                hComment.getCreationDate(), hComment.getTargetVersion());
    }
View Full Code Here

                Matchers.equalTo("some comment"));

        AsyncCallback<AddReviewCommentResult> callback =
                resultCaptor.getValue();
        AddReviewCommentResult result =
                new AddReviewCommentResult(new ReviewComment());
        callback.onSuccess(result);

        verify(display).addCommentToList(result.getComment());
        verify(display).clearInput();
    }
View Full Code Here

                new TransHistoryItem("5", Lists.newArrayList("a"),
                        ContentState.Approved, "admin", new Date(now - 1000));
        TransHistoryItem item =
                new TransHistoryItem("4", Lists.newArrayList("a"),
                        ContentState.Approved, "admin", new Date(now - 2000));
        ReviewComment comment =
                new ReviewComment(new ReviewCommentId(1L), "comment", "admin",
                        new Date(now), 5);

        presenter.displayEntries(latest, Lists.newArrayList(item),
                Lists.newArrayList(comment));
View Full Code Here

                Matchers.equalTo("i hate this"));

        AsyncCallback<AddReviewCommentResult> callback =
                resultCaptor.getValue();
        AddReviewCommentResult result =
                new AddReviewCommentResult(new ReviewComment());
        callback.onSuccess(result);

        verify(display).clearInput();
        verify(eventBus).fireEvent(saveEvent);
        verify(eventBus).fireEvent(NavTransUnitEvent.NEXT_ENTRY_EVENT);
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.model.ReviewComment

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.