The problem is I need to check output, the stuff that Junit cant do.
So the easiest way is having teh emails mailed from the test cases..
test:test:
[junit] Running org.apache.commons.mail.DefaultAuthenticatorTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.964 sec
[junit] Running org.apache.commons.mail.EmailAttachmentTest
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 4.907 sec
[junit] Running org.apache.commons.mail.EmailTest
[junit] Tests run: 37, Failures: 7, Errors: 0, Time elapsed: 2.171 sec
[junit] [ERROR] TEST org.apache.commons.mail.EmailTest FAILED
[junit] Running org.apache.commons.mail.HtmlEmailTest
[junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 9.349 sec
[junit] [ERROR] TEST org.apache.commons.mail.HtmlEmailTest FAILED
[junit] Running org.apache.commons.mail.MultiPartEmailTest
[junit] Tests run: 11, Failures: 1, Errors: 0, Time elapsed: 11.09 sec
[junit] [ERROR] TEST org.apache.commons.mail.MultiPartEmailTest FAILED
[junit] Running org.apache.commons.mail.SimpleEmailTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.779 sec
All these errors seem related to when the mails attempt to send.
Mark
On Wed, 27 Oct 2004 14:23:08 +0200, Eric Pugh <[EMAIL PROTECTED]> wrote:
> All but the "EmailTest" should run.. Dumbster [1] fakes out your SMTP
> server, so you don't even need one. Of course, I am not sure what happens
> if you have a real smtp server running on port 25 and you use Dumbster.
>
> I assume you are running under Maven? Run "maven test" and most should
> work.
>
> Eric
>
> [1] http://www.quintanasoft.com/dumbster/
>
>
>
> > -----Original Message-----
> > From: Mark Lowe [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 27, 2004 1:49 PM
> > To: Commons dev list
> > Subject: [email] test cases
> >
> >
> > Should these test cases work (after editing the EmailConfig test class)?
> >
> > I had most of them working yesterday enough to mail me the test mails,
> > but today i cant get them doing anything. I have an smtp service
> > running locally, but is this being done by this dumpster thing now?
> >
> > Anything you could do to help be get these cases working would be
> > great. All of them are related to the Test classes themselves not the
> > actual code they are testing. Once I have a clearer idea what could be
> > up i'll be able to enter a bug report, but i don't even have that
> > amount of clarity yet.
> >
> > Mark
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]