@Test @InSequence(2) public void callOverloadedTimedMethodOnce() { assertThat("Timers are not registered correctly", registry.getTimers().keySet(), is(equalTo(absoluteMetricNames()))); bean.overloadedTimedMethod(); bean.overloadedTimedMethod("string"); bean.overloadedTimedMethod(new Object()); bean.overloadedTimedMethod(Arrays.asList("string1", "string2")); assertThat("Timer counts are incorrect", registry.getTimers().values(), everyItem(Matchers.<Timer>hasProperty("count", equalTo(1L)))); }
@Timed(name = "overloadedTimedMethodWithNoArguments") public void overloadedTimedMethod() { }
OverloadedTimedMethodBean { @Timed(name = "overloadedTimedMethodWithNoArguments") public void overloadedTimedMethod() { } }
OverloadedTimedMethodBean { @Timed(name = "overloadedTimedMethodWithNoArguments") public void overloadedTimedMethod() { }  }
OverloadedTimedMethodBean { @Timed(name = "overloadedTimedMethodWithNoArguments") public void overloadedTimedMethod() { }  @Timed(name = "overloadedTimedMethodWithNoArguments") void overloadedTimedMethod(); @Timed(name = "overloadedTimedMethodWithStringArgument") void overloadedTimedMethod(String string); @Timed(name = "overloadedTimedMethodWithListOfStringArgument") void overloadedTimedMethod(List<String> strings); @Timed(name = "overloadedTimedMethodWithObjectArgument") void overloadedTimedMethod(Object object); }
OverloadedTimedMethodBean { @Timed(name = "overloadedTimedMethodWithNoArguments") public void overloadedTimedMethod() { }  @Timed(name = "overloadedTimedMethodWithNoArguments") void overloadedTimedMethod(); @Timed(name = "overloadedTimedMethodWithStringArgument") void overloadedTimedMethod(String string); @Timed(name = "overloadedTimedMethodWithListOfStringArgument") void overloadedTimedMethod(List<String> strings); @Timed(name = "overloadedTimedMethodWithObjectArgument") void overloadedTimedMethod(Object object);  }