@Test public void shouldReadMetricsFromClassReflection() { List<Metric> metrics = CoreMetrics.getMetrics(); assertTrue(metrics.size() > 10); assertTrue(metrics.contains(CoreMetrics.NCLOC)); assertTrue(metrics.contains(CoreMetrics.DIRECTORIES)); }
public BatchMediumTesterBuilder registerCoreMetrics() { for (Metric<?> m : CoreMetrics.getMetrics()) { registerMetric(m); } return this; }