@Test @InSequence(2) public void callExpressionTimedMethodOnce() { assertThat("Timer is not registered correctly", registry.getTimers(), hasKey(timerName)); Timer timer = registry.getTimers().get(timerName); bean.expressionTimedMethod(); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(TIMER_COUNT.incrementAndGet()))); }
@Timed(name = "${'timer ' += timerIdBean.id}") public void expressionTimedMethod() { }
TimedMethodWithElNameBean { @Timed(name = "${'timer ' += timerIdBean.id}") public void expressionTimedMethod() { } }
TimedMethodWithElNameBean { @Timed(name = "${'timer ' += timerIdBean.id}") public void expressionTimedMethod() { }  }
TimedMethodWithElNameBean { @Timed(name = "${'timer ' += timerIdBean.id}") public void expressionTimedMethod() { }  @Timed(name = "${'timer ' += timerIdBean.id}") void expressionTimedMethod(); @Timed(name = "timer ${timerIdBean.id}") void compositeExpressionTimedMethod(); @Timed(name = "${(id -> 'timer ' += id)(timerIdBean['id'])}") void lambdaExpressionTimedMethod(); }
TimedMethodWithElNameBean { @Timed(name = "${'timer ' += timerIdBean.id}") public void expressionTimedMethod() { }  @Timed(name = "${'timer ' += timerIdBean.id}") void expressionTimedMethod(); @Timed(name = "timer ${timerIdBean.id}") void compositeExpressionTimedMethod(); @Timed(name = "${(id -> 'timer ' += id)(timerIdBean['id'])}") void lambdaExpressionTimedMethod();  }