Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 4527 invoked from network); 15 Nov 2009 16:21:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Nov 2009 16:21:40 -0000 Received: (qmail 55706 invoked by uid 500); 15 Nov 2009 16:21:40 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 55655 invoked by uid 500); 15 Nov 2009 16:21:40 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 55645 invoked by uid 99); 15 Nov 2009 16:21:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 16:21:40 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of esjewett@gmail.com designates 209.85.222.174 as permitted sender) Received: from [209.85.222.174] (HELO mail-pz0-f174.google.com) (209.85.222.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Nov 2009 16:21:38 +0000 Received: by pzk4 with SMTP id 4so3043847pzk.32 for ; Sun, 15 Nov 2009 08:21:18 -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 :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hj4yy+wzEWJSeHOKrozjtTn2wTBiIUpW3iyQR+JHhrk=; b=hyy2fFQpy21gLk5u1JB3jT6cq6id3VWcYgBAji7Xxlo8gvww9xP31GVhlUTyPA5JJd 3q8JIItPjTWGiUzBFYoNHnXYaxe3xB3kUMg5K0Da9G6mLl54lE+tmhCiNKFSBuhwaKCe ImrmFQZ/eXTkFYfjfdkKt4dqmuu6lsik6EGW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rsJW/K/s54XiDUB5P7EkzIJiodhOkoywwSS8yqtDjnpouWs3PZLvdoFahvWqQQoG+x mWL/qNJgb+j/IR5cpTWNxWpQpu2TjU8HUjk8X9nBB5KvKKb/slBziBDIbrlNB63bgNcG H7swQKiG1Y9Y3s++fHYp/JduyZrsT73IcXYuQ= MIME-Version: 1.0 Received: by 10.140.199.14 with SMTP id w14mr374586rvf.63.1258302077881; Sun, 15 Nov 2009 08:21:17 -0800 (PST) In-Reply-To: References: <68f4a0e80911150735q3c630b81x6fdf7c9bbe0898ff@mail.gmail.com> Date: Sun, 15 Nov 2009 11:21:17 -0500 Message-ID: <68f4a0e80911150821g5b5f524ahc6043b92fb774e4a@mail.gmail.com> Subject: Re: Changed tests to get everything working From: Ethan Jewett To: esme-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yup, I was just looking at that. I didn't get the chance to look at how TestKit works, but I will be digging into that next, I'm sure. Ethan On Sun, Nov 15, 2009 at 10:47 AM, Richard Hirsch wr= ote: > I also struggled with the tests and it took some experimenting to get > it all to work. Lots of cut and paste work. I ended up just copying > David's code into the other files :-> > > D. > > On Sun, Nov 15, 2009 at 4:35 PM, Ethan Jewett wrote: >> Hi Dick, >> >> I also couldn't get the doBeforeSpec/doAfterSpec to work in David's >> API test class that uses the TestKit trait. I think it's because the >> trait requires the definition of a base URL variable and I couldn't >> figure out how to do that in a way that worked with the Specs >> doBeforeSpec approach to starting up the JettyTestServer. >> >> I'll take a look at what you did today. Thanks for figuring it out! >> >> Ethan >> >> On Sun, Nov 15, 2009 at 3:36 AM, Richard Hirsch = wrote: >>> I just committed all three existing tests files with little changes in >>> order to get all three working locally. =A0I used the lift TestKit as >>> the basis for all three test cases. I tried using Ethan's doBeforeSpec >>> { JettyTestServer.start } and doAfterSpec{ JettyTestServer.stop } in >>> all three files and it didn't work, so I just started experimenting >>> until it finally worked. >>> >>> Like I said the three tests work locally but there is the still the DB >>> problem in the Hudson environment so the tests don't work there. >>> >>> It would be good to have some sort of description either in the ESME >>> wiki or in the lift wiki that we could use as a template. >>> >>> D. >>> >> >