Hi!

I wrote a little about integration testing an EJB a while ago. It
doesn't test an MDB, but it builds a Stateless ejb, deploys it on a
JBoss and tests it. It could perhaps be used as a hint for you and how
to solve your problem.

http://thomassundberg.wordpress.com/2010/12/21/automatically-integration-test-an-ejb-with-maven/

HTH
Thomas

On Mon, Apr 11, 2011 at 06:16, Andrew Hughes <[email protected]> wrote:
> Howdy,
>
> I want to be able to check that the MDB's created actually execute and
> behave as expected.
>
> For reference, the EE5 tutorial (
> http://download.oracle.com/javaee/5/tutorial/doc/bnbpq.html) covers two
> equivalent "tests" :
>
>   - *Building, Deploying, and Running the simplemessage Application Using
>   NetBeans IDE*
>   - *Building, Deploying, and Running the simplemessage Application Using
>   Ant*
>
> I can't work out how this is best done in Maven (because surprise, surprise,
> the NetBean's ant scrips are less than intuitive) and I can't find any doco
> examples on this.
>
> Help would be excellent :)
>
> Cheers.
>



-- 
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to