Return-Path: Delivered-To: apmail-incubator-directory-dev-archive@www.apache.org Received: (qmail 13390 invoked from network); 24 Dec 2004 06:33:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Dec 2004 06:33:08 -0000 Received: (qmail 36913 invoked by uid 500); 24 Dec 2004 06:33:07 -0000 Delivered-To: apmail-incubator-directory-dev-archive@incubator.apache.org Received: (qmail 36816 invoked by uid 500); 24 Dec 2004 06:33:07 -0000 Mailing-List: contact directory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list directory-dev@incubator.apache.org Received: (qmail 36803 invoked by uid 99); 24 Dec 2004 06:33:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of flamefew@gmail.com designates 64.233.170.192 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.192) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 23 Dec 2004 22:33:04 -0800 Received: by rproxy.gmail.com with SMTP id a41so141rng for ; Thu, 23 Dec 2004 22:33:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=dtlBXeFAde0x6xL/VaEsRUH1w9B96sOUBt6cKQdPHyOtkejMqQ2ySBs04iY9qjlChJQQP3HmEtqYziYfDCJcCwjAq6tfdNUFSxk/bfBqja4hT0GltsjabhAzaKjzUuToU6Q6ZIja7AVwrVGfajN47k51RK3jjgG4ReOvWvM2qRc= Received: by 10.38.71.1 with SMTP id t1mr53801rna; Thu, 23 Dec 2004 18:16:18 -0800 (PST) Received: by 10.38.86.24 with HTTP; Thu, 23 Dec 2004 18:16:18 -0800 (PST) Message-ID: <31cc373604122318166c88d768@mail.gmail.com> Date: Thu, 23 Dec 2004 21:16:18 -0500 From: Henri Yandell Reply-To: Henri Yandell To: Apache Directory Developers List , vtence@videotron.ca Subject: Re: [naming] Mail factory tests In-Reply-To: <41CB6E21.704@videotron.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41CB2247.1020005@steitz.com> <41CB44CE.7050805@apache.org> <41CB4440.4010105@steitz.com> <41CB6E21.704@videotron.ca> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Isn't that what Dumbster is being used for in Commons Email? Hen On Thu, 23 Dec 2004 20:17:21 -0500, Vincent Tence wrote: > Another option is to use dynamic mocks. I'd recommend jmock > > http://jmock.org > > - Vincent > > Phil Steitz wrote: > > Brett Porter wrote: > > > >> Probably a couple of things. I don't remember the name of the library, > >> but there is a mock implementation of javamail that could be used to > >> pretend to send mail, but not actually do it. > >> > >> I guess the other alternative is to embed something like James? > >> > >> Do you really need to send a mail to test it, or is obtaining a valid > >> session enough? > > > > > > Gettting a Session / MimePartDataSource is probably good enough. I will > > see if I can find the mock javamail impl. > > > > Phil > >