use of com.cloudogu.scm.review.comment.service.CommentEvent in project scm-review-plugin by scm-manager.
the class RemoveReviewMarksOnChangedCommentsHookTest method shouldRemoveMarksOnNewCommentWithSameLocation.
@Test
void shouldRemoveMarksOnNewCommentWithSameLocation() {
comment.setLocation(new Location("some/file"));
pullRequest.setReviewMarks(of(new ReviewMark("some/file", "dent")));
CommentEvent event = new CommentEvent(repository, pullRequest, comment, null, HandlerEventType.CREATE);
hook.handleCommentEvents(event);
verify(pullRequestService).removeReviewMarks(repository, pullRequest.getId(), singletonList(new ReviewMark("some/file", "dent")));
}
Aggregations