@Test public void shouldUpdateMinMetric() { long newMin = INITIAL_MIN + 10; when(snapshot.getMin()).thenReturn(newMin); histogramAdapter.updateMonitorables(); assertThat(extractMonitorables(histogramAdapter).get(MIN).get(), Matchers.<Object>is(newMin)); }
@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();  }