You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dale Emery (JIRA)" <ji...@apache.org> on 2018/05/18 23:42:00 UTC
[jira] [Created] (GEODE-5233) Eliminate the TxManagerImpl singleton
Dale Emery created GEODE-5233:
---------------------------------
Summary: Eliminate the TxManagerImpl singleton
Key: GEODE-5233
URL: https://issues.apache.org/jira/browse/GEODE-5233
Project: Geode
Issue Type: Improvement
Components: regions
Reporter: Dale Emery
Eliminate the {{TxManagerImpl}} singleton
Many classes invoke static {{TxManagerImpl}} methods that access a {{TxManagerImpl}} singleton. These methods, and the singleton, are difficult to configure and observe when testing classes that interact with {{TxManagerImpl}}.
For testability, eliminate the singleton. Instead, let other objects locate an instance and interact with it rather than with static methods. This will allow tests to mock or otherwise fake the {{TxManagerImpl}} for test purposes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)