Examples of IssueDto


Examples of org.sonar.core.issue.db.IssueDto

    verifyZeroInteractions(issueService);
  }

  @Test
  public void fail_if_comment_not_inserted_in_db() throws Exception {
    IssueDto issueDto = IssueTesting.newDto(RuleTesting.newXooX1().setId(500), ComponentTesting.newFileDto(ComponentTesting.newProjectDto()), ComponentTesting.newProjectDto());
    when(issueService.getByKeyForUpdate(session, "ABCD")).thenReturn(issueDto);
    // Comment has not be inserted in db
    when(issueCommentService.findComments(session, "ABCD")).thenReturn(Collections.<DefaultIssueComment>emptyList());

    try {
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.