@Test public void shouldUpdateMeanMetric() { double newMean = INITIAL_MEAN + 10; when(snapshot.getMean()).thenReturn(newMean); histogramAdapter.updateMonitorables(); assertThat(extractMonitorables(histogramAdapter).get(MEAN).get(), Matchers.<Object>is(newMean)); }
@Override public void updateMonitorables() { samplingAdapter.updateMonitorables(); countingAdapter.updateMonitorables(); }
HistogramAdapter implements MetricAdapter { @Override public void updateMonitorables() { samplingAdapter.updateMonitorables(); countingAdapter.updateMonitorables(); } }
HistogramAdapter implements MetricAdapter { @Override public void updateMonitorables() { samplingAdapter.updateMonitorables(); countingAdapter.updateMonitorables(); } HistogramAdapter(Histogram histogram, String name, String description, Unit<?> unit);  HistogramAdapter(Histogram histogram, String name, String description); }
HistogramAdapter implements MetricAdapter { @Override public void updateMonitorables() { samplingAdapter.updateMonitorables(); countingAdapter.updateMonitorables(); } HistogramAdapter(Histogram histogram, String name, String description, Unit<?> unit);  HistogramAdapter(Histogram histogram, String name, String description); @Override Set<Monitorable> getMonitorables(); @Override void updateMonitorables(); }
HistogramAdapter implements MetricAdapter { @Override public void updateMonitorables() { samplingAdapter.updateMonitorables(); countingAdapter.updateMonitorables(); } HistogramAdapter(Histogram histogram, String name, String description, Unit<?> unit);  HistogramAdapter(Histogram histogram, String name, String description); @Override Set<Monitorable> getMonitorables(); @Override void updateMonitorables();  }