Examples of measures()


Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.measures()

        .put("sonar.scm.disabled", "true")
        .put("sonar.scm.provider", "xoo")
        .build())
      .start();

    assertThat(result.measures()).hasSize(1);
  }

}
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.measures()

    TaskResult result = tester
      .newScanTask(new File(projectDir, "sonar-project.properties"))
      .start();

    assertThat(result.measures()).hasSize(13);
  }

  @Test
  public void computeMeasuresOnTempProject() throws IOException {
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.measures()

        .put("sonar.projectDescription", "Description of Foo Project")
        .put("sonar.sources", "src")
        .build())
      .start();

    assertThat(result.measures()).hasSize(1);

    assertThat(result.measures()).contains(new DefaultMeasure<Integer>()
      .forMetric(CoreMetrics.LINES)
      .onFile(new DefaultInputFile("com.foo.project", "src/sample.xoo"))
      .withValue(20));
View Full Code Here

Examples of org.sonar.batch.mediumtest.BatchMediumTester.TaskResult.measures()

        .build())
      .start();

    assertThat(result.measures()).hasSize(1);

    assertThat(result.measures()).contains(new DefaultMeasure<Integer>()
      .forMetric(CoreMetrics.LINES)
      .onFile(new DefaultInputFile("com.foo.project", "src/sample.xoo"))
      .withValue(20));

  }
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.