Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 93149 invoked from network); 20 Jan 2010 13:48:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 13:48:07 -0000 Received: (qmail 63885 invoked by uid 500); 20 Jan 2010 13:48:06 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 63848 invoked by uid 500); 20 Jan 2010 13:48:06 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 63839 invoked by uid 99); 20 Jan 2010 13:48:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 13:48:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.220.216 as permitted sender) Received: from [209.85.220.216] (HELO mail-fx0-f216.google.com) (209.85.220.216) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 13:47:59 +0000 Received: by fxm8 with SMTP id 8so2929855fxm.27 for ; Wed, 20 Jan 2010 05:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=o8x/9nzUIHOpv7rq5IOPIaaAO7fZuZu5l/NbJux/vyw=; b=DKmOm9SYeln21yFJloJ4glEyZtnQBzqMYq2yhN619QO5QC4f0t7sfZf7Y+wWe/+SpV Gtfhr1N6jx8YVsNAzM4o3ZMvVBCbE55bXqUsXUDldA9ptADR3wNmh08mtB2w7H7/YPB0 Q+d+746s7xs/uBsXIrIOv+VUGzFBUG8REd7tg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=UAZUGaKp8i/SqCSCpowJ4bSFP183j0XWArkm+T3eFH/arOtI81vY6Bmmtn3o9LhVyv cx+68dPxd1iUU37c+Oy2mJX9ot7Hkhz+ZHYPufU8ceny5XYm0Tb5p4lXj6uQvF0zETbv 4YpYaZLv0Vi5O+jFwVWGpoAou3iQRcyz3xAW0= MIME-Version: 1.0 Received: by 10.216.85.212 with SMTP id u62mr3228429wee.164.1263995258122; Wed, 20 Jan 2010 05:47:38 -0800 (PST) In-Reply-To: <468b21171001200244n2521e77esa84964946f0eb20b@mail.gmail.com> References: <468b21171001200244n2521e77esa84964946f0eb20b@mail.gmail.com> From: Jonathan Ellis Date: Wed, 20 Jan 2010 07:47:18 -0600 Message-ID: Subject: Re: How to unit test my code calling Cassandra with Thift To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable did you look at CassandraDaemon? On Wed, Jan 20, 2010 at 4:44 AM, Richard Grossman wro= te: > Hi > > I want to write some unitest for code calling cassandra. So my code of > course use Thrift. > I've managed to up the cassandra deamon into my JVM like this : > > =A0=A0=A0 =A0=A0=A0 StorageService.instance().initServer(); > > Unfortunatly it's doest start the thrift interface so my code can't talk > with the server. Is there any solution ? > perhaps my method is not good. > > Thanks > > Richard >