use of com.hazelcast.internal.metrics.impl.MethodProbe.LongMethodProbe in project hazelcast by hazelcast.
the class MethodProbeTest method getLong.
public void getLong(String methodName, int expectedValue) throws Exception {
SomeSource source = new SomeSource();
Method method = source.getClass().getDeclaredMethod(methodName);
Probe probe = method.getAnnotation(Probe.class);
MethodProbe methodProbe = createMethodProbe(method, probe, new SourceMetadata(SomeSource.class));
LongMethodProbe longMethodProbe = assertInstanceOf(LongMethodProbe.class, methodProbe);
long value = longMethodProbe.get(source);
assertEquals(expectedValue, value);
}
Aggregations