You can also have a look how we instance for example the SMTPServer
for our tests:

http://svn.apache.org/viewvc/james/server/trunk/smtpserver/src/test/java/org/apache/james/smtpserver/SMTPServerTest.java?view=markup

Bye,
Norman


2011/6/3 Eric Charles <[email protected]>:
> Hi,
> Let your webapp depend on the jar [1] and instanciate a spring context [2].
>  You will be able to use the
> smtpserver/mailspooler/mailboxmanager/messagemanager beans to interact
> depending on your needs.
>
> Tks,
> - Eric
>
> [1]
> https://svn.apache.org/repos/asf/james/server/trunk/container-spring/pom.xml
>
> [2]
> https://svn.apache.org/repos/asf/james/server/trunk/container-spring/src/main/config/james/context/james-server-context.xml
>
>
>
> On 1/06/2011 11:26, lukasz wrote:
>>
>> Hi, I would like to use james server (smtp and imap) as embedded mail
>> server for integration testing. Tests are run with testng and with
>> spring support.
>> Does anyone try to do so, and is willing to give me a hint where to start
>> ?
>>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to