use of com.cloudogu.scm.review.comment.service.Comment in project scm-review-plugin by scm-manager.
the class MyOpenReviewsTest method createComment.
private static Comment createComment(CommentType type) {
Comment comment = new Comment();
comment.setType(type);
return comment;
}
use of com.cloudogu.scm.review.comment.service.Comment in project scm-review-plugin by scm-manager.
the class MailTextResolverTest method shouldRenderEmailOnCommentTransition.
@Test
void shouldRenderEmailOnCommentTransition() {
Comment taskComment = oldComment.clone();
taskComment.addCommentTransition(new ExecutedTransition<>("new", CommentTransition.MAKE_TASK, System.currentTimeMillis(), "dent"));
CommentEvent event = new CommentEvent(repository, pullRequest, comment, oldComment, HandlerEventType.MODIFY);
CommentEventMailTextResolver renderer = new CommentEventMailTextResolver(event);
assertEmail(renderer, "changed");
}
use of com.cloudogu.scm.review.comment.service.Comment in project scm-review-plugin by scm-manager.
the class MyOpenTasksTest method createComment.
private static Comment createComment(CommentType type) {
Comment comment = new Comment();
comment.setType(type);
return comment;
}
Aggregations