@ -332,6 +333,32 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -332,6 +333,32 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@ -604,7 +631,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -604,7 +631,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
staticinterfaceFixedRatesDefaultMethod{
interfaceFixedRatesDefaultMethod{
@Scheduled(fixedRate=4000)
@Scheduled(fixedRate=4000,initialDelay=2000)
@ -681,14 +708,25 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -681,14 +708,25 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@Scheduled(fixedRate=5000)
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceEveryFiveSeconds{}
private@interfaceEveryFiveSeconds{
}
@Scheduled(cron="0 0 * * * ?")
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
privatestatic@interfaceHourly{}
private@interfaceHourly{
}
@Scheduled(initialDelay=1000)
@Retention(RetentionPolicy.RUNTIME)
private@interfaceWaitASec{
@AliasFor(annotation=Scheduled.class)
longfixedDelay()default-1;
@AliasFor(annotation=Scheduled.class)
longfixedRate()default-1;
}
staticclassMetaAnnotationFixedRateTestBean{
@ -697,6 +735,12 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -697,6 +735,12 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
}
staticclassComposedAnnotationFixedRateTestBean{
@WaitASec(fixedRate=5000)
publicvoidcheckForUpdates(){
}
}
staticclassMetaAnnotationCronTestBean{
@ -705,7 +749,6 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -705,7 +749,6 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
}
staticclassPropertyPlaceholderWithCronTestBean{
@Scheduled(cron="${schedules.businessHours}")
@ -741,7 +784,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -741,7 +784,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {