@Test public void shouldUpdateMinMetric() { long newMin = INITIAL_MIN + 10; when(snapshot.getMin()).thenReturn(newMin); timerAdapter.updateMonitorables(); assertThat(extractMonitorables(timerAdapter).get(MIN).get(), Matchers.<Object>is(newMin)); }
@Override public void updateMonitorables() { meteredAdapter.updateMonitorables(); samplingAdapter.updateMonitorables(); }
TimerAdapter implements MetricAdapter { @Override public void updateMonitorables() { meteredAdapter.updateMonitorables(); samplingAdapter.updateMonitorables(); } }
TimerAdapter implements MetricAdapter { @Override public void updateMonitorables() { meteredAdapter.updateMonitorables(); samplingAdapter.updateMonitorables(); } TimerAdapter(Timer timer, String name, String description); }
TimerAdapter implements MetricAdapter { @Override public void updateMonitorables() { meteredAdapter.updateMonitorables(); samplingAdapter.updateMonitorables(); } TimerAdapter(Timer timer, String name, String description); @Override Set<Monitorable> getMonitorables(); @Override void updateMonitorables(); }
TimerAdapter implements MetricAdapter { @Override public void updateMonitorables() { meteredAdapter.updateMonitorables(); samplingAdapter.updateMonitorables(); } TimerAdapter(Timer timer, String name, String description); @Override Set<Monitorable> getMonitorables(); @Override void updateMonitorables();  }