use of com.hazelcast.internal.metrics.collectors.MetricsCollector in project hazelcast by hazelcast.
the class RenderTest method whenLongProbeFunctions.
@Test
public void whenLongProbeFunctions() {
MetricsCollector renderer = mock(MetricsCollector.class);
registerLongMetric("foo", 10);
registerLongMetric("bar", 20);
metricsRegistry.collect(renderer);
verify(renderer).collectLong(metricDescriptor("foo"), 10);
verify(renderer).collectLong(metricDescriptor("bar"), 20);
verifyNoMoreInteractions(renderer);
}
use of com.hazelcast.internal.metrics.collectors.MetricsCollector in project hazelcast by hazelcast.
the class RenderTest method whenDoubleProbeFunctions.
@Test
public void whenDoubleProbeFunctions() {
MetricsCollector renderer = mock(MetricsCollector.class);
registerDoubleMetric("foo", 10);
registerDoubleMetric("bar", 20);
metricsRegistry.collect(renderer);
verify(renderer).collectDouble(metricDescriptor("foo"), 10);
verify(renderer).collectDouble(metricDescriptor("bar"), 20);
verifyNoMoreInteractions(renderer);
}
Aggregations