Examples of testFile()


Examples of org.sonar.api.batch.sensor.test.internal.DefaultTestCaseCoverage.testFile()

  }

  @Override
  public void put(Value value, Object object, CoderContext context) {
    DefaultTestCaseCoverage t = (DefaultTestCaseCoverage) object;
    value.putUTF(((DefaultInputFile) t.testFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.testFile()).relativePath());
    value.putUTF(t.testName());
    value.putUTF(((DefaultInputFile) t.coveredFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.coveredFile()).relativePath());
    value.put(t.coveredLines().size());
View Full Code Here

Examples of org.sonar.api.batch.sensor.test.internal.DefaultTestCaseCoverage.testFile()

  @Override
  public void put(Value value, Object object, CoderContext context) {
    DefaultTestCaseCoverage t = (DefaultTestCaseCoverage) object;
    value.putUTF(((DefaultInputFile) t.testFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.testFile()).relativePath());
    value.putUTF(t.testName());
    value.putUTF(((DefaultInputFile) t.coveredFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.coveredFile()).relativePath());
    value.put(t.coveredLines().size());
    for (Integer line : t.coveredLines()) {
View Full Code Here

Examples of org.sonar.api.batch.sensor.test.internal.DefaultTestCaseExecution.testFile()

  }

  @Override
  public void put(Value value, Object object, CoderContext context) {
    DefaultTestCaseExecution t = (DefaultTestCaseExecution) object;
    value.putUTF(((DefaultInputFile) t.testFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.testFile()).relativePath());
    value.putUTF(t.name());
    putUTFOrNull(value, t.message());
    putUTFOrNull(value, t.stackTrace());
    Long durationInMs = t.durationInMs();
View Full Code Here

Examples of org.sonar.api.batch.sensor.test.internal.DefaultTestCaseExecution.testFile()

  @Override
  public void put(Value value, Object object, CoderContext context) {
    DefaultTestCaseExecution t = (DefaultTestCaseExecution) object;
    value.putUTF(((DefaultInputFile) t.testFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.testFile()).relativePath());
    value.putUTF(t.name());
    putUTFOrNull(value, t.message());
    putUTFOrNull(value, t.stackTrace());
    Long durationInMs = t.durationInMs();
    value.put(durationInMs != null ? durationInMs.longValue() : -1);
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.