Need to Mock the comment body to comment in unit test case ...
In jira plugin we are taking lastcomment value using below line:
Comment lastComment = ComponentAccessor.getCommentManager().getLastComment(arg1).
how can we achieve same thing from Unit test case ?
iam trying to Mock like below:
comment=commentManager.create(issue, applicationUser,CommentText, false);
But iam getting NULL value from comment .
can you please any one assist me on this .How can i achieve this .
Thanks in advance for your Suggestions .
We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG