Witold Szczerba a écrit :
> Hi there,
> I was wondering - what would be wrong in testing EJBs inside container?
> For example, I would like to deploy my application and then run some
> tests (using separate testing database and other necessary resources),
> would be that possible?
>
> If that is possible and reasonable, how can I make it so?
Hello,
Did you have a look at Cactus ?
Cactus is a simple test framework for unit testing server-side java code
(Servlets, EJBs, Tag Libs, Filters, ...
http://jakarta.apache.org/cactus/
Also, you can make your EJB a facade for POJO, like POJO are easy to test.
Cheers
cyrille
>
>
> 2007/4/7, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>:
>> You could use ejb3unit which is a junit extention for out of
>> container testing (EJB3):
>> http://ejb3unit.sourceforge.net/
>>
>> In this moment it supports entity bean tests, session bean tests and
>> mocked session bean tests.
>> [Message sent by forum member 'fbauschulte' (fbauschulte)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=211468