Search in sources :

Example 1 with Counter

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"));
}
Also used : Counter(org.apache.sling.commons.metrics.Counter) Test(org.junit.Test)

Aggregations

Counter (org.apache.sling.commons.metrics.Counter)1 Test (org.junit.Test)1