zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@yahoo-inc.com>
Subject Re: Zookeeper unit tester?
Date Tue, 09 Mar 2010 22:53:37 GMT
Hi David,
  We don't really have a mock test ZooKeeper client which does not do any
I/O. We have been thinking about using mockito sometime soon to use for this
kind of testing, but currently there is none.


On 3/9/10 2:23 PM, "David Rosenstrauch" <darose@darose.net> wrote:

> Just wondering if there was a mock/fake version of
> org.apache.zookeeper.Zookeeper that could be used for unit testing?
> What I'm envisioning would be a single instance Zookeeper that operates
> completely in memory, with no network or disk I/O.
> This would make it possible to pass one of the memory-only
> FakeZookeeper's into unit tests, while using a real Zookeeper in
> production code.
> Any such "animal"?  :-)
> Thanks,
> DR

View raw message