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)

Reply via email to