Florent Guillaume created GERONIMO-6805:
-------------------------------------------
Summary: Use a time SPI abstraction to provide time to the
transaction manager
Key: GERONIMO-6805
URL: https://issues.apache.org/jira/browse/GERONIMO-6805
Project: Geronimo
Issue Type: Improvement
Security Level: public (Regular issues)
Components: transaction manager
Reporter: Florent Guillaume
Currently the {{TransactionImpl}} uses (indirectly)
{{System.currentTimeMillis()}} to decide if a transaction has timed out.
To allow for better unit testing, it would be beneficial to introduce an
abstraction of the time provider so that unit tests can plug custom
time-resolving implementations and avoid {{Thread.sleep().}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)