You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Jens Goldhammer (JIRA)" <ji...@apache.org> on 2008/08/08 11:37:44 UTC

[jira] Commented: (SYNAPSE-246) Inappropriate test strategy in MailEchoRawXMLTest

    [ https://issues.apache.org/jira/browse/SYNAPSE-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620885#action_12620885 ] 

Jens Goldhammer commented on SYNAPSE-246:
-----------------------------------------

Maybe you can use GreenMail for testing.
Look at http://www.icegreen.com/greenmail/

> Inappropriate test strategy in MailEchoRawXMLTest
> -------------------------------------------------
>
>                 Key: SYNAPSE-246
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-246
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: NIGHTLY
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: FUTURE
>
>         Attachments: org.apache.synapse.transport.mail.MailEchoRawXMLTest.txt
>
>
> The unit tests in MailEchoRawXMLTest test the mail transport by sending mails to a Gmail account, connecting to smtp.gmail.com and pop.gmail.com. This strategy is inappropriate for several reasons:
> 1) It introduces a dependency external to the test itself.
> 2) The tests will fail when executed on a machine not connected to the Internet or from within a network with a restrictive firewall.
> 3) It slows down the execution of the tests.
> 4) Sporadically smtp.gmail.com replies with "421 4.4.5 Server busy, try again later.", causing the test to fail.
> Maybe we should consider using something like mock-javamail (https://mock-javamail.dev.java.net/) to make these tests self-containing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org