commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mel...@gmail.com>
Subject Re: [email] test cases
Date Fri, 29 Oct 2004 12:05:27 GMT
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 <epugh@upstate.com> 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 <melowe@gmail.com> 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 <epugh@upstate.com> 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


Mime
View raw message