accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3285) Remove static methods from ZooUtil and make a factory for instances.
Date Fri, 31 Oct 2014 16:36:35 GMT
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)

Mime
View raw message