Examples of HTextFlowTargetReviewComment


Examples of org.zanata.model.HTextFlowTargetReviewComment

        identity.checkPermission("review-comment", locale, project);

        TranslationWorkspace workspace =
                translationWorkspaceManager.getOrRegisterWorkspace(workspaceId);

        HTextFlowTargetReviewComment hComment =
                hTextFlowTarget.addReviewComment(action.getContent(),
                        authenticatedAccount.getPerson());
        textFlowTargetReviewCommentsDAO.makePersistent(hComment);
        textFlowTargetReviewCommentsDAO.flush();
View Full Code Here

Examples of org.zanata.model.HTextFlowTargetReviewComment

                TestFixture.makeHTextFlow(1L, hLocale, ContentState.Rejected);

        HPerson commenter = new HPerson();
        TestFixture.setId(3L, commenter);

        return new HTextFlowTargetReviewComment(textFlow.getTargets().get(
                hLocale.getId()), comment, commenter);
    }
View Full Code Here

Examples of org.zanata.model.HTextFlowTargetReviewComment

                    assertTextFlowTarget(existingTarget, newTarget, newTf);

                    for (int x = 0; x < existingTarget.getReviewComments()
                            .size(); x++) {
                        HTextFlowTargetReviewComment expectedComment =
                                existingTarget.getReviewComments().get(x);
                        HTextFlowTargetReviewComment newComment =
                                newTarget.getReviewComments().get(x);

                        assertTextFlowTargetHistoryAndReview(expectedComment,
                                newComment, existingTarget, newTarget);
                    }
View Full Code Here

Examples of org.zanata.model.HTextFlowTargetReviewComment

            assertThat(newTarget.getReviewer()).isEqualToIgnoringGivenFields(
                    existingTarget.getReviewer(), "id");
        }

        for (int i = 0; i < existingTarget.getReviewComments().size(); i++) {
            HTextFlowTargetReviewComment expectedComment =
                    existingTarget.getReviewComments().get(i);
            HTextFlowTargetReviewComment newComment =
                    newTarget.getReviewComments().get(i);

            assertTextFlowTargetHistoryAndReview(expectedComment, newComment,
                    existingTarget, newTarget);
        }
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.