@Test @InSequence(3) public void callTimedMethodOnce(MetricRegistry registry) { assertThat("Timer is not registered correctly", registry.getTimers(), hasKey(TIMED_NAME)); Timer timer = registry.getTimers().get(TIMED_NAME); bean.timedMethod(); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(1L))); }
public void timedMethod() { }
ConcreteTimedBean extends AbstractGenericBean { public void timedMethod() { } }
ConcreteTimedBean extends AbstractGenericBean { public void timedMethod() { }  }
ConcreteTimedBean extends AbstractGenericBean { public void timedMethod() { }  void timedMethod(); }
ConcreteTimedBean extends AbstractGenericBean { public void timedMethod() { }  void timedMethod();  }