[
https://issues.apache.org/jira/browse/SCB-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ang Li reassigned SCB-1559:
---------------------------
Assignee: Ang Li (was: Haishi Yao)
> Use java.time.Clock instead of java.lang.System#currentTimeMillis to get time
> -----------------------------------------------------------------------------
>
> Key: SCB-1559
> URL: https://issues.apache.org/jira/browse/SCB-1559
> Project: Apache ServiceComb
> Issue Type: Task
> Components: Java-Chassis
> Reporter: Haishi Yao
> Assignee: Ang Li
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)