commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Pugh" <ep...@upstate.com>
Subject RE: [email] test cases
Date Fri, 29 Oct 2004 11:39:06 GMT
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