BeanFactoryAwareIntervalConverter implements IntervalConverter { @Override public long toMillis(final Interval interval) { return convertToMilliseconds(interval, resolveMilliseconds(interval)); }  @Override long toMillis(final Interval interval);  }
@Test @Interval(value = "10") public void shouldResolveStatic() { assertThat(intervalConverter.toMillis(new Object() {}.getClass().getEnclosingMethod().getAnnotation(Interval.class))) .isEqualTo(10); }
@Test @Interval(value = "${locked.interval}") public void shouldResolveProperty() { assertThat(intervalConverter.toMillis(new Object() {}.getClass().getEnclosingMethod().getAnnotation(Interval.class))) .isEqualTo(10); }