use of org.apache.sling.commons.metrics.Counter in project sling by apache.
the class MetricServiceTest method counter.
@Test
public void counter() throws Exception {
activate();
Counter counter = service.counter("test");
assertNotNull(counter);
assertTrue(getRegistry().getCounters().containsKey("test"));
assertSame(counter, service.counter("test"));
}