Examples of Metric


Examples of org.sonar.api.measures.Metric

    }
  }

  Measure convertToItMeasure(Measure measure) {
    Measure itMeasure = null;
    Metric metric = measure.getMetric();
    Double value = measure.getValue();

    if (CoreMetrics.LINES_TO_COVER.equals(metric)) {
      itMeasure = new Measure(CoreMetrics.IT_LINES_TO_COVER, value);
    } else if (CoreMetrics.UNCOVERED_LINES.equals(metric)) {
View Full Code Here

Examples of org.sonar.wsclient.services.Metric

public class MetricUnmarshallerTest extends UnmarshallerTestCase {

  @Test
  public void toModel() {
    Metric metric = new MetricUnmarshaller().toModel("[]");
    assertThat(metric, nullValue());

    metric = new MetricUnmarshaller().toModel(loadFile("/metrics/one_metric.json"));
    assertThat(metric.getKey(), is("ncloc"));
    assertThat(metric.getName(), is("Lines of code"));
    assertThat(metric.getDescription(), is("Non Commenting Lines of Code"));
    assertThat(metric.getType(), is("INT"));
    assertTrue(metric.getHidden());
  }
View Full Code Here

Examples of org.sumus.dwh.metric.Metric

      addMetric(cube, dataStore, definition);
  }

  private void addMetric(Cube cube, DataStore dataStore, MetricDefinition definition){
    try {
      cube.add(new Metric(definition.getName()));
    }
    catch (Exception e) {
    }
  }
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.