Examples of DefaultIssue


Examples of org.sonar.api.issue.internal.DefaultIssue

    DefaultIssueComment comment = DefaultIssueComment.create("ABCDE", "emmerik", "the comment");
    // override generated key
    comment.setKey("FGHIJ");

    Date date = DateUtils.parseDate("2013-05-18");
    DefaultIssue issue = new DefaultIssue()
      .setKey("ABCDE")
      .setNew(true)

      .setRuleKey(RuleKey.of("squid", "AvoidCycle"))
      .setLine(5000)
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

    DefaultIssueComment comment = DefaultIssueComment.create("ABCDE", "emmerik", "the comment");
    // override generated key
    comment.setKey("FGHIJ");

    Date date = DateUtils.parseDate("2013-05-18");
    DefaultIssue issue = new DefaultIssue()
      .setKey("ABCDE")
      .setNew(true)

      .setRuleKey(RuleKey.of("squid", "AvoidCycle"))
      .setLine(5000)
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

    DefaultIssueComment comment = DefaultIssueComment.create("ABCDE", "emmerik", "the comment");
    // override generated key
    comment.setKey("FGHIJ");

    Date date = DateUtils.parseDate("2013-05-18");
    DefaultIssue issue = new DefaultIssue()
      .setKey("ABCDE")
      .setNew(false)
      .setChanged(true)

        // updated fields
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

    DefaultIssueComment comment = DefaultIssueComment.create("ABCDE", "emmerik", "the comment");
    // override generated key
    comment.setKey("FGHIJ");

    Date date = DateUtils.parseDate("2013-05-18");
    DefaultIssue issue = new DefaultIssue()
      .setKey("ABCDE")
      .setNew(false)
      .setChanged(true)

        // updated fields
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

    writer = new IssueActionsWriter(issueService, actionService);
  }

  @Test
  public void write_all_standard_actions() throws Exception {
    Issue issue = new DefaultIssue()
      .setKey("ABCD")
      .setComponentUuid("BCDE")
      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectUuid("ABCD")
      .setProjectKey("sample")
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

        "]}");
  }

  @Test
  public void write_plugin_actions() throws Exception {
    Issue issue = new DefaultIssue()
      .setKey("ABCD")
      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectKey("sample")
      .setRuleKey(RuleKey.of("squid", "AvoidCycle"));
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

        "]}");
  }

  @Test
  public void write_only_comment_action() throws Exception {
    Issue issue = new DefaultIssue()
      .setKey("ABCD")
      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectKey("sample")
      .setRuleKey(RuleKey.of("squid", "AvoidCycle"))
      .setResolution("CLOSED");
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

        "]}");
  }

  @Test
  public void write_no_action_if_not_logged() throws Exception {
    Issue issue = new DefaultIssue()
      .setKey("ABCD")
      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectKey("sample")
      .setRuleKey(RuleKey.of("squid", "AvoidCycle"));
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

      "{\"actions\": []}");
  }

  @Test
  public void write_actions_without_assign_to_me() throws Exception {
    Issue issue = new DefaultIssue()
      .setKey("ABCD")
      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectKey("sample")
      .setRuleKey(RuleKey.of("squid", "AvoidCycle"))
      .setAssignee("john");
View Full Code Here

Examples of org.sonar.api.issue.internal.DefaultIssue

        "]}");
  }

  @Test
  public void write_transitions() throws Exception {
    Issue issue = new DefaultIssue()
      .setKey("ABCD")
      .setComponentKey("sample:src/main/xoo/sample/Sample.xoo")
      .setProjectKey("sample")
      .setRuleKey(RuleKey.of("squid", "AvoidCycle"));
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.