Examples of projectUuid()


Examples of org.sonar.core.component.ComponentDto.projectUuid()

      assertThat(dir.projectUuid()).isEqualTo(root.uuid());
      assertThat(dir.moduleUuid()).isEqualTo(b1.uuid());
      assertThat(dir.moduleUuidPath()).isEqualTo(root.uuid() + "." + b.uuid() + "." + b1.uuid());
      ComponentDto fileComp = session.getMapper(ComponentMapper.class).selectByKey("b1:src/main/java/org/Foo.java");
      assertThat(fileComp.uuid()).isNotNull();
      assertThat(fileComp.projectUuid()).isEqualTo(root.uuid());
      assertThat(fileComp.moduleUuid()).isEqualTo(b1.uuid());
      assertThat(fileComp.moduleUuidPath()).isEqualTo(root.uuid() + "." + b.uuid() + "." + b1.uuid());
    } finally {
      MyBatis.closeQuietly(session);
    }
View Full Code Here

Examples of org.sonar.core.component.ComponentDto.projectUuid()

    SqlSession session = getMyBatis().openSession(false);
    try {
      ComponentDto newProject = session.getMapper(ComponentMapper.class).selectByKey("foo");
      ComponentDto newDir = session.getMapper(ComponentMapper.class).selectByKey("foo:src/main/java/org/foo");
      assertThat(newDir.uuid()).isNotNull();
      assertThat(newDir.projectUuid()).isEqualTo(newProject.uuid());
      assertThat(newDir.moduleUuid()).isEqualTo(newProject.uuid());
      assertThat(newDir.moduleUuidPath()).isEqualTo(newProject.uuid());
    } finally {
      MyBatis.closeQuietly(session);
    }
View Full Code Here

Examples of org.sonar.core.component.ComponentDto.projectUuid()

    SqlSession session = getMyBatis().openSession(false);
    try {
      // FIXME selectByKey returns duplicates for libraries because of the join on snapshots table
      ComponentDto newLib = session.getMapper(ComponentMapper.class).findByKeys(Arrays.asList("junit:junit")).get(0);
      assertThat(newLib.uuid()).isNotNull();
      assertThat(newLib.projectUuid()).isEqualTo(newLib.uuid());
      assertThat(newLib.moduleUuid()).isNull();
      assertThat(newLib.moduleUuidPath()).isNull();
    } finally {
      MyBatis.closeQuietly(session);
    }
View Full Code Here

Examples of org.sonar.server.issue.index.IssueDoc.projectUuid()

    for (Issue issue : result.getHits()) {
      IssueDoc issueDoc = (IssueDoc) issue;
      issueKeys.add(issue.key());
      ruleKeys.add(issue.ruleKey());
      projectUuids.add(issueDoc.projectUuid());
      componentUuids.add(issueDoc.componentUuid());
      actionPlanKeys.add(issue.actionPlanKey());
      if (issue.reporter() != null) {
        userLogins.add(issue.reporter());
      }
View Full Code Here

Examples of org.sonar.server.issue.index.IssueDoc.projectUuid()

    Issue result = service.createManualIssue(file.key(), manualRule.getKey(), 10, "Fix it", Severity.MINOR, 2d);

    IssueDoc manualIssue = (IssueDoc) indexClient.get(IssueIndex.class).getByKey(result.key());
    assertThat(manualIssue.componentUuid()).isEqualTo(file.uuid());
    assertThat(manualIssue.projectUuid()).isEqualTo(project.uuid());
    assertThat(manualIssue.ruleKey()).isEqualTo(manualRule.getKey());
    assertThat(manualIssue.message()).isEqualTo("Fix it");
    assertThat(manualIssue.line()).isEqualTo(10);
    assertThat(manualIssue.severity()).isEqualTo(Severity.MINOR);
    assertThat(manualIssue.effortToFix()).isEqualTo(2d);
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.