@Test @InSequence(4) public void callExtendedTimedMethodOnce(MetricRegistry registry) { assertThat("Timer is not registered correctly", registry.getTimers(), hasKey(EXTENDED_TIMED_NAME)); Timer timer = registry.getTimers().get(EXTENDED_TIMED_NAME); bean.anotherTimedMethod(); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(1L))); }
public void anotherTimedMethod() { }
ConcreteExtendedTimedBean extends AbstractTimedBean { public void anotherTimedMethod() { } }
ConcreteExtendedTimedBean extends AbstractTimedBean { public void anotherTimedMethod() { }  }
ConcreteExtendedTimedBean extends AbstractTimedBean { public void anotherTimedMethod() { }  void anotherTimedMethod(); }
ConcreteExtendedTimedBean extends AbstractTimedBean { public void anotherTimedMethod() { }  void anotherTimedMethod();  }