I am running a @Scheduled
method at the end of every month.
How would I go about testing that? I've heard of awaitility
for simple async call backs but this would be a rather long await.
I've heard of businessTime
, where you could simply set the time and to a second before the @Scheduled
time, but no clue as to how to set it up.
Other than that, I am somewhat baffled.
This is the the annotation I have. Can you work around this with @Profile
?
@Scheduled(cron = "0 0 0 30 * ?")