Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ED2A991A for ; Tue, 21 Feb 2012 23:33:57 +0000 (UTC) Received: (qmail 69439 invoked by uid 500); 21 Feb 2012 23:33:56 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 69411 invoked by uid 500); 21 Feb 2012 23:33:56 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 69403 invoked by uid 99); 21 Feb 2012 23:33:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 23:33:56 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jzimmerman@netflix.com designates 69.53.237.163 as permitted sender) Received: from [69.53.237.163] (HELO exout102.netflix.com) (69.53.237.163) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 23:33:50 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=s1024;d=netflix.com; h=from:to:subject:date:message-id:in-reply-to:content-type:mime-version; bh=ma+X05dEYMtoaEbtBMYgRwBFuY0=; b=QYEAEAbg/CBun8GwczCNZEMv1z/zlxRmYCzchEGGgBFCYqL7UrxuT+sCMqEZVuZM5ByEMmvr BetNfofYrxbC0JsjWx/bvnEPSYmW+NDS4NqjDc9/arP6hAp7vV6fNkcSYaKawyQauuM7O8fU fVp/qGXdBQP4ljQ5I1LyzYMI86w= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024;d=netflix.com; h=from:to:subject:date:message-id:in-reply-to:content-type:mime-version; b=F6zE5EZFmyWzrv9THYWgDLSUIG/yz942gLvZckcosmMZjIbgE1E8zHYBvqfMX6eUu2nucL3Q ln5WBSZYlKxwShYpYK/u7zV165t0JW/8V8F6vAhHth9/2kA0nKCupzb/VFm3edh01sOBJ6+G 2mLtTxoFaO4R7GWWGpXvypt5XIk= Received: from EXFE103.corp.netflix.com (10.64.32.103) by exout102.netflix.com (10.64.240.74) with Microsoft SMTP Server (TLS) id 8.3.192.1; Tue, 21 Feb 2012 15:33:30 -0800 Received: from EXMB107.corp.netflix.com ([169.254.7.30]) by exfe103.corp.netflix.com ([10.64.32.103]) with mapi id 14.01.0323.003; Tue, 21 Feb 2012 15:33:29 -0800 From: Jordan Zimmerman To: "user@zookeeper.apache.org" Subject: Re: Unit Testing ZooKeeper Based Application Thread-Topic: Unit Testing ZooKeeper Based Application Thread-Index: AQHM8PD6mY4aZgpA90u9mQZ+RygMBpZIAIgA Date: Tue, 21 Feb 2012 23:33:29 +0000 Message-ID: In-Reply-To: <645340A1-E65D-4009-A8B9-56C84B6CA791@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.10.0.110310 x-originating-ip: [10.2.245.73] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Curator provides an in-memory ZooKeeper Server and ZooKeeper Cluster: com.netflix.curator curator-test 1.1.2 https://github.com/Netflix/curator/tree/master/curator-test/src/main/java/c om/netflix/curator/test On 2/21/12 3:31 PM, "Amirhossein Kiani" wrote: >Hi ZooKeeper users, > >I was wondering if there is a correct way of writing unit tests for a >ZooKeeper application. I have looked at Twitter's tests but have been >unable to get them to work... I was wondering if there is a more generic >way of creating the in-process ZooKeeper server for testing. > >Many thanks, >Amir