Class org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessorTests

27

tests

0

failures

0

ignored

0.090s

duration

100%

successful

Tests

Test Duration Result
composedAnnotationWithInitialDelayAndFixedRate 0.003s passed
cronTask 0.001s passed
cronTaskWithInvalidZone 0.001s passed
cronTaskWithMethodValidation 0.013s passed
cronTaskWithScopedProxy 0.015s passed
cronTaskWithZone 0.002s passed
emptyAnnotation 0.001s passed
expressionWithCron 0.002s passed
fixedDelayTask 0.002s passed
fixedRateTask 0.001s passed
fixedRateTaskWithInitialDelay 0.001s passed
invalidCron 0.002s passed
metaAnnotationWithCronExpression 0.008s passed
metaAnnotationWithFixedRate 0.002s passed
nonEmptyParamList 0.002s passed
nonVoidReturnType 0.002s passed
propertyPlaceholderForMetaAnnotation 0.003s passed
propertyPlaceholderWithCron 0.002s passed
propertyPlaceholderWithFixedDelayInDuration 0.002s passed
propertyPlaceholderWithFixedDelayInMillis 0.001s passed
propertyPlaceholderWithFixedRateInDuration 0.002s passed
propertyPlaceholderWithFixedRateInMillis 0.002s passed
severalFixedRatesAgainstNestedCglibProxy 0.012s passed
severalFixedRatesOnBaseClass 0.002s passed
severalFixedRatesOnDefaultMethod 0.003s passed
severalFixedRatesWithRepeatedScheduledAnnotation 0.001s passed
severalFixedRatesWithSchedulesContainerAnnotation 0.002s passed

Standard output

16:46:04.069 [Test worker] WARN  org.springframework.context.support.StaticApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'target': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'cron': Invalid time zone specification 'FOO'
16:46:04.077 [Test worker] WARN  org.springframework.context.support.StaticApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'target': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'invalid': Only no-arg methods may be annotated with @Scheduled
16:46:04.094 [Test worker] WARN  org.springframework.context.support.StaticApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'target': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'invalid': Cron expression must consist of 6 fields (found 1 in "abc")
16:46:04.097 [Test worker] WARN  org.springframework.context.support.StaticApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'target': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Encountered invalid @Scheduled method 'invalid': Exactly one of the 'cron', 'fixedDelay(String)', or 'fixedRate(String)' attributes is required
16:46:04.120 [Test worker] WARN  org.springframework.context.support.StaticApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'target': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Need to invoke method 'cron' found on proxy for target class 'CronTestBean' but cannot be delegated to target bean. Switch its visibility to package or protected.