@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.applicationScopedTimedMethod(); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(1L))); }
@Timed public void applicationScopedTimedMethod() { }
ApplicationScopedTimedMethodBean { @Timed public void applicationScopedTimedMethod() { } }
ApplicationScopedTimedMethodBean { @Timed public void applicationScopedTimedMethod() { }  }
ApplicationScopedTimedMethodBean { @Timed public void applicationScopedTimedMethod() { }  @Timed void applicationScopedTimedMethod(); }
ApplicationScopedTimedMethodBean { @Timed public void applicationScopedTimedMethod() { }  @Timed void applicationScopedTimedMethod();  }