use of com.epam.pipeline.controller.vo.IssueCommentVO in project cloud-pipeline by epam.
the class IssueApiServiceTest method testUpdateCommentAccessDenied.
@WithMockUser(username = NO_PERMISSION_USER)
@Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class)
@Test(expected = AccessDeniedException.class)
public void testUpdateCommentAccessDenied() {
IssueCommentVO issueCommentVO = new IssueCommentVO();
issueCommentVO.setText(COMMENT_TEXT);
issueApiService.updateComment(createdIssue.getId(), createdIssueComment.getId(), issueCommentVO);
}
Aggregations