Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Currently most of our code use java.lang.System#currentTimeMillis to get the current time.
This method is not convenient to mock.
It's recommended to search all of the place we use java.lang.System#currentTimeMillis and replace them with java.time.Clock. And it's better to provide a mock clock class in testscaffolding.
Attachments
Issue Links
- links to