Replies: 1 comment 1 reply
-
Personally, I find the use of custom clock's not so readable. That's why I use Mockito to freeze Instant.now() to a timestamp of my choice. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community,
I have a question about injecting a custom clock into JobRunr.
Why do I want to do this? It's because I want to perform integration tests, test my jobs and configurations, and have the capability to manipulate time.
Any advice on how to accomplish this would be greatly appreciated. Thank you! :)
Beta Was this translation helpful? Give feedback.
All reactions