[ https://issues.apache.org/jira/browse/GERONIMO-6805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francois Papon updated GERONIMO-6805: ------------------------------------- Fix Version/s: TxManager-4.0.1 > 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 > Priority: Minor > Fix For: TxManager-4.0.1 > > > 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.20.10#820010)