Examples of moduleUuidPath()


Examples of org.sonar.api.issue.internal.DefaultIssue.moduleUuidPath()

    assertThat(issue.language()).isEqualTo("xoo");
    assertThat(issue.componentUuid()).isEqualTo("CDEF");
    assertThat(issue.componentKey()).isEqualTo("org.sonar.sample:Sample");
    assertThat(issue.componentId()).isEqualTo(1L);
    assertThat(issue.moduleUuid()).isEqualTo("BCDE");
    assertThat(issue.moduleUuidPath()).isEqualTo("ABCD.BCDE.");
    assertThat(issue.projectUuid()).isEqualTo("ABCD");
    assertThat(issue.projectKey()).isEqualTo("org.sonar.sample");
    assertThat(issue.status()).isEqualTo(Issue.STATUS_CLOSED);
    assertThat(issue.resolution()).isEqualTo(Issue.RESOLUTION_FALSE_POSITIVE);
    assertThat(issue.effortToFix()).isEqualTo(15.0);
View Full Code Here

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

    ComponentDto result = dao.getNullableByUuid(session, "KLMN");
    assertThat(result).isNotNull();
    assertThat(result.uuid()).isEqualTo("KLMN");
    assertThat(result.moduleUuid()).isEqualTo("EFGH");
    assertThat(result.moduleUuidPath()).isEqualTo("ABCD.EFGH.");
    assertThat(result.subProjectId()).isEqualTo(2);
    assertThat(result.projectUuid()).isEqualTo("ABCD");
    assertThat(result.key()).isEqualTo("org.struts:struts-core:src/org/struts/RequestContext.java");
    assertThat(result.path()).isEqualTo("src/org/struts/RequestContext.java");
    assertThat(result.name()).isEqualTo("RequestContext.java");
View Full Code Here

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

    ComponentDto result = results.get(0);
    assertThat(result).isNotNull();
    assertThat(result.uuid()).isEqualTo("KLMN");
    assertThat(result.moduleUuid()).isEqualTo("EFGH");
    assertThat(result.moduleUuidPath()).isEqualTo("ABCD.EFGH.");
    assertThat(result.subProjectId()).isEqualTo(2);
    assertThat(result.projectUuid()).isEqualTo("ABCD");
    assertThat(result.key()).isEqualTo("org.struts:struts-core:src/org/struts/RequestContext.java");
    assertThat(result.path()).isEqualTo("src/org/struts/RequestContext.java");
    assertThat(result.name()).isEqualTo("RequestContext.java");
View Full Code Here

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

    try {
      ComponentDto newProject = session.getMapper(ComponentMapper.class).selectByKey("foo");
      assertThat(newProject.uuid()).isNotNull();
      assertThat(newProject.projectUuid()).isEqualTo(newProject.uuid());
      assertThat(newProject.moduleUuid()).isNull();
      assertThat(newProject.moduleUuidPath()).isNull();
      // SONAR-3636 : created_at must be fed when inserting a new entry in the 'projects' table
      assertThat(newProject.getCreatedAt()).isNotNull();
    } finally {
      MyBatis.closeQuietly(session);
    }
View Full Code Here

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

    try {
      ComponentDto newProject = session.getMapper(ComponentMapper.class).selectByKey("foo");
      assertThat(newProject.uuid()).isNotNull();
      assertThat(newProject.projectUuid()).isEqualTo(newProject.uuid());
      assertThat(newProject.moduleUuid()).isNull();
      assertThat(newProject.moduleUuidPath()).isNull();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

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

    try {
      ComponentDto root = session.getMapper(ComponentMapper.class).selectByKey("root");
      assertThat(root.uuid()).isNotNull();
      assertThat(root.projectUuid()).isEqualTo(root.uuid());
      assertThat(root.moduleUuid()).isNull();
      assertThat(root.moduleUuidPath()).isNull();
      ComponentDto a = session.getMapper(ComponentMapper.class).selectByKey("a");
      assertThat(a.uuid()).isNotNull();
      assertThat(a.projectUuid()).isEqualTo(root.uuid());
      assertThat(a.moduleUuid()).isEqualTo(root.uuid());
      assertThat(a.moduleUuidPath()).isEqualTo(root.uuid());
View Full Code Here

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

      assertThat(root.moduleUuidPath()).isNull();
      ComponentDto a = session.getMapper(ComponentMapper.class).selectByKey("a");
      assertThat(a.uuid()).isNotNull();
      assertThat(a.projectUuid()).isEqualTo(root.uuid());
      assertThat(a.moduleUuid()).isEqualTo(root.uuid());
      assertThat(a.moduleUuidPath()).isEqualTo(root.uuid());
      ComponentDto b = session.getMapper(ComponentMapper.class).selectByKey("b");
      assertThat(b.uuid()).isNotNull();
      assertThat(b.projectUuid()).isEqualTo(root.uuid());
      assertThat(b.moduleUuid()).isEqualTo(root.uuid());
      assertThat(b.moduleUuidPath()).isEqualTo(root.uuid());
View Full Code Here

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

      assertThat(a.moduleUuidPath()).isEqualTo(root.uuid());
      ComponentDto b = session.getMapper(ComponentMapper.class).selectByKey("b");
      assertThat(b.uuid()).isNotNull();
      assertThat(b.projectUuid()).isEqualTo(root.uuid());
      assertThat(b.moduleUuid()).isEqualTo(root.uuid());
      assertThat(b.moduleUuidPath()).isEqualTo(root.uuid());
      ComponentDto b1 = session.getMapper(ComponentMapper.class).selectByKey("b1");
      assertThat(b1.uuid()).isNotNull();
      assertThat(b1.projectUuid()).isEqualTo(root.uuid());
      assertThat(b1.moduleUuid()).isEqualTo(b.uuid());
      assertThat(b1.moduleUuidPath()).isEqualTo(root.uuid() + "." + b.uuid());
View Full Code Here

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

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

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

      assertThat(b1.moduleUuidPath()).isEqualTo(root.uuid() + "." + b.uuid());
      ComponentDto dir = session.getMapper(ComponentMapper.class).selectByKey("b1:src/main/java/org");
      assertThat(dir.uuid()).isNotNull();
      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());
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.