Package org.sonar.api.component

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


      String componentKey = entry.getKey();
      Integer ref = entry.getValue();
      Component file = componentsByKey.get(componentKey);
      json.name(Integer.toString(ref)).beginObject();
      json.prop("key", file.key());
      json.prop("longName", file.longName());
      json.endObject();
    }
    json.endObject();
  }
}
View Full Code Here


    for (TestCase testCase : testPlan.testCasesByName(test)) {
      for (CoverageBlock coverageBlock : testCase.coverageBlocks()) {
        json.beginObject();
        Component file = coverageBlock.testable().component();
        json.prop("key", file.key());
        json.prop("longName", file.longName());
        json.prop("coveredLines", coverageBlock.lines().size());
        json.endObject();
      }
    }
    json.endArray();
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.