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