@Test @InSequence(3) public void callSelfInvocationTimedMethodOnce() { assertThat("Timer is not registered correctly", registry.getTimers(), hasKey(TIMER_NAME)); Timer timer = registry.getTimers().get(TIMER_NAME); bean.selfInvocationTimedMethod(); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(TIMER_COUNT.get()))); }
public void selfInvocationTimedMethod() { timedMethod(); }
TimedMethodBean { public void selfInvocationTimedMethod() { timedMethod(); } }
TimedMethodBean { public void selfInvocationTimedMethod() { timedMethod(); }  }
TimedMethodBean { public void selfInvocationTimedMethod() { timedMethod(); }  @Timed(name = "timedMethod") void timedMethod(); void selfInvocationTimedMethod(); }
TimedMethodBean { public void selfInvocationTimedMethod() { timedMethod(); }  @Timed(name = "timedMethod") void timedMethod(); void selfInvocationTimedMethod();  }