You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michi Mutsuzaki (JIRA)" <ji...@apache.org> on 2014/04/24 00:32:15 UTC

[jira] [Updated] (ZOOKEEPER-694) Add unit tester for Zookeeper

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michi Mutsuzaki updated ZOOKEEPER-694:
--------------------------------------

    Fix Version/s:     (was: 3.5.0)
                   3.6.0

> Add unit tester for Zookeeper
> -----------------------------
>
>                 Key: ZOOKEEPER-694
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-694
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: c client, tests
>            Reporter: David Rosenstrauch
>            Priority: Minor
>             Fix For: 3.6.0
>
>
> It would be nice to have a mock/fake version of org.apache.zookeeper.Zookeeper that could be used for unit testing.  i.e., 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 fake Zookeeper's into unit tests, while using a real Zookeeper in production code.
> i.e., maybe something like this:
> public interface ZooKeeperService {
> ...
> }
> public class ZooKeeperTester implements ZooKeeperService {
> ...
> (stand-alone, in-memory, test implementation)
> ...
> }
> public class ZooKeeper implements ZooKeeperService {
> ...
> ("real" implementation)
> ...
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)