Re: Test unitaire EJB3
"Guillaume Sauthier (OW2)" <[email protected]> Fri, 8 Jul 2011 21:46:11 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <CAG1yf3PiMk3wC4cjnxJXGacdgiBxTJBizvOV2YjL+=1Ddm7XeA@mail.gmail.com> |
Hi this list is english speaking. There is a jonas-fr -at- ow2.org list if you want to stick with french ;) As EJB3 are POJO, I think you may be able to create the EJB instances yourself, and mocks the dependencies. Once done, you'll have a valid (and controlled) instance that you can battle test... No need for in-container testing. --G Le 8 juillet 2011 18:26, Sylvain Bonnemaison < [email protected]> a écrit : > Bonjour, > > Par quel moyen peut-on mettre en place des test unitaires pour des > composants EJB3 (entity, session, message) ? (Junit, etc.) > Un exemple serait le bien venue. > > Merci. >