Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 36644 invoked from network); 29 Oct 2004 12:05:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Oct 2004 12:05:39 -0000 Received: (qmail 87365 invoked by uid 500); 29 Oct 2004 12:05:32 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 87265 invoked by uid 500); 29 Oct 2004 12:05:31 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 87252 invoked by uid 99); 29 Oct 2004 12:05:31 -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 melowe@gmail.com designates 64.233.184.192 as permitted sender) Received: from [64.233.184.192] (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 29 Oct 2004 05:05:30 -0700 Received: by wproxy.gmail.com with SMTP id 55so619437wri for ; Fri, 29 Oct 2004 05:05:27 -0700 (PDT) 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=mNEZKrIyOlHuCLSvkj4EzJ7p/iCDEOkE25joOD6ooFR+F7KNr3gjbMl9gTNr3TJLMs3nxFFI/PaDJ+iOu6Mcii0iI2Y+FhfZnl0V5B46zgbdWqRsLwIIBjkeMVDegAhqPLCmhGJI3gog0/bTqZEJxhqXVA4Y1QF5ljCHVoqbp20= Received: by 10.54.25.37 with SMTP id 37mr408651wry; Fri, 29 Oct 2004 05:05:27 -0700 (PDT) Received: by 10.54.27.56 with HTTP; Fri, 29 Oct 2004 05:05:27 -0700 (PDT) Message-ID: <3e1257da04102905053647f74a@mail.gmail.com> Date: Fri, 29 Oct 2004 14:05:27 +0200 From: Mark Lowe Reply-To: Mark Lowe To: epugh@upstate.com, commons-dev@jakarta.apache.org Subject: Re: [email] test cases In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <3e1257da04102903154b185bd0@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I wont give up eric, no worries there :o) I'm looking into offline email browsing, ideally a swing app that can be fired up from maven. But I'll need to get a bit of time on this, hope fully pointing my mail client at the outputted files will remove the self-spam dependency. Have you any suggestions of how to go about working around UnsupportedEncodingException not being thrown but the compiler insisting that it needs to be caught? The test case seems to suggest that the mail api doesn't really care about bogus charsets. Were the AddressException patches dog or any use? Point me in the right direction in terms of what needs doing and I'll try and get some patches to you. At the moment I'm guessing a little bit, as I'm not sure what the project's priourities are, but I'm glad to try and help as much as i can. Mark On Fri, 29 Oct 2004 13:39:06 +0200, Eric Pugh wrote: > Alright.. I've made some progress. I refactored all the unit tests to > extend from BaseEmailTestCase. BaseEmailTestCase contains the various bits > of shared code. It also starts and stops dumbster. > > So, on to my problem... I added an example of Dumster being quried for the > email, and validating the subject. It also writes the email out to > /target/test-emails as a .txt file. Look at TestEmail.testSend. If you > JUST run that method, everything works great. If you run everything, > dumbster seems to fail. I am still digging through it. > > At any rate, Mark, would writing the email out like that solve your needs? > > I know it's frustrating getting everything setup, but don't give up! > > Eric > > > -----Original Message----- > > From: Mark Lowe [mailto:melowe@gmail.com] > > Sent: Friday, October 29, 2004 12:16 PM > > To: Jakarta Commons Developers List > > Subject: Re: [email] test cases > > > > > > Thinking about it , if a simple swing app could be fired up (like > > junit (test:ui)) then that could be used for testing the output > > without using an smtp server, perhaps even just something that can > > render and output to a image or pdf. I'll have a read around. > > > > > > > > On Fri, 29 Oct 2004 11:39:29 +0200, Mark Lowe wrote: > > > The smtp jar does seem required to run the tests and only have them > > > failing rather than throwing errors. The mail api seems to have > > > trouble throwing a UnsupportedEncodingException. But this isn't really > > > a test case issue, as the unit test correctly report that no exception > > > is thrown. > > > > > > Mark > > > > > > > > > > > > On Fri, 29 Oct 2004 11:20:54 +0200, Eric Pugh wrote: > > > > I can see the value of *actually* recieving the email. I > > think we could add > > > > it commented out to project.xml. And a FAQ entry > > (xdocs/faq.fml) about > > > > swapping between dumbster and really sending emails... > > > > > > > > Eric > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Corey Scott [mailto:corey.scott@gmail.com] > > > > > Sent: Friday, October 29, 2004 3:23 AM > > > > > To: Jakarta Commons Developers List; Mark Lowe > > > > > Subject: Re: [email] test cases > > > > > > > > > > > > > > > It doesnt use smtp.jar, right? > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > > > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org