You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2014/10/31 17:36:35 UTC

[jira] [Created] (ACCUMULO-3285) Remove static methods from ZooUtil and make a factory for instances.

Josh Elser created ACCUMULO-3285:
------------------------------------

             Summary: Remove static methods from ZooUtil and make a factory for instances.
                 Key: ACCUMULO-3285
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3285
             Project: Accumulo
          Issue Type: Improvement
            Reporter: Josh Elser
            Assignee: Josh Elser
             Fix For: 1.7.0


In fixing ACCUMULO-2727, I wanted to write a unit test to be sure we properly retry when we get a BadVersion exception. 

To get ZooKeeper to throw the exceptions I want it to, I really want to use EasyMock. However, to get mocking of static methods, I'd have to pull in PowerMock which I really don't want to do.

We should just take ZooUtil and wrap a factory around it to make some instances (or anything else that will ultimately remove the static methods).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)