Examples of longName()


Examples of org.sonar.wsclient.component.Component.longName()

    Component component = issues.component(issues.list().get(0));
    assertThat(component.key()).isEqualTo("struts:Action.java");
    assertThat(component.id()).isEqualTo(10L);
    assertThat(component.qualifier()).isEqualTo("CLA");
    assertThat(component.name()).isEqualTo("Action");
    assertThat(component.longName()).isEqualTo("org.struts.Action");
    assertThat(component.subProjectId()).isEqualTo(2L);
    assertThat(component.projectId()).isEqualTo(1L);

    assertThat(issues.componentByKey("struts:Action.java").key()).isEqualTo("struts:Action.java");
    assertThat(issues.componentById(10).key()).isEqualTo("struts:Action.java");
View Full Code Here

Examples of org.sonar.wsclient.component.Component.longName()

    Component component = issues.project(issues.list().get(0));
    assertThat(component.key()).isEqualTo("struts");
    assertThat(component.qualifier()).isEqualTo("TRK");
    assertThat(component.name()).isEqualTo("Struts");
    assertThat(component.longName()).isEqualTo("org.struts");
  }

  @Test
  public void parse_action_plans() throws Exception {
    String json = IOUtils.toString(getClass().getResourceAsStream("/org/sonar/wsclient/issue/internal/IssueJsonParserTest/issue-with-action-plans.json"));
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.