Package org.sonar.api.batch.sensor

Examples of org.sonar.api.batch.sensor.SensorStorage


    verify(storage).store(issue);
  }

  @Test
  public void build_project_issue() {
    SensorStorage storage = mock(SensorStorage.class);
    DefaultIssue issue = new DefaultIssue(storage)
      .onProject()
      .ruleKey(RuleKey.of("repo", "rule"))
      .effortToFix(10.0)
      .message("Wrong way!");
View Full Code Here


  @Rule
  public ExpectedException thrown = ExpectedException.none();

  @Test
  public void build_file_measure() {
    SensorStorage storage = mock(SensorStorage.class);
    DefaultMeasure<Integer> newMeasure = new DefaultMeasure<Integer>(storage)
      .forMetric(CoreMetrics.LINES)
      .onFile(new DefaultInputFile("foo", "src/Foo.php"))
      .withValue(3);
View Full Code Here

    verify(storage).store(newMeasure);
  }

  @Test
  public void build_project_measure() {
    SensorStorage storage = mock(SensorStorage.class);
    DefaultMeasure<Integer> newMeasure = new DefaultMeasure<Integer>(storage)
      .forMetric(CoreMetrics.LINES)
      .onProject()
      .withValue(3);
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.sensor.SensorStorage

Copyright © 2018 www.massapicom. 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.