use of fish.payara.microprofile.metrics.impl.HistogramImpl in project Payara by payara.
the class MetricRegistryImplTest method registerByMetadataAllowsToReuseAsLongAsMetadataIsSame.
@Test
public void registerByMetadataAllowsToReuseAsLongAsMetadataIsSame() {
Histogram h1 = new HistogramImpl();
assertExistingMetadataIsUsed(name -> registry.register(withName(name), h1), name -> registry.register(withName(name), new HistogramImpl()));
assertSame(h1, registry.getHistograms().values().iterator().next());
}
Aggregations