Also, take a look at Cactus, it's a JUnit extension for doing server-side testing which includes testing EJBs.
http://jakarta.apache.org/cactus/index.html Jason -----Original Message----- From: Emerson Cargnin - SICREDI Serviços [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 3:25 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Testing EJBs with JUnit As there's so many people intersted in this code, i'm translating it and will let it available through ftp (soon). Dimitri PISSARENKO wrote: > Hello! > > >>The JBossCMP example in the newest Quick Start guide uses my JUnit >>extension JUnitEJB, which supports the execution of test on the >>serverside. This is very useful for testing Local interfaces. I >>haven't written any docs on it, but you should be able to figure it out >>>from the code. >> > > Where can I get the code? > > Thanks > > Dimitri Pissarenko > > On Wed, 17 Jul 2002 12:16:23 -0500, you wrote: > > >>The JBossCMP example in the newest Quick Start guide uses my JUnit >>extension JUnitEJB, which supports the execution of test on the >>serverside. This is very useful for testing Local interfaces. I >>haven't written any docs on it, but you should be able to figure it out >>>from the code. >> >>-dain >> >>HORTON,NOAH (HP-FtCollins,ex1) wrote: >> >>>I would love to see your example of using JUnit with an EJB. >>> >>>Thanks! >>>-Noah Horton >>> >>> >>> >>>>-----Original Message----- >>>>From: Emerson Cargnin - SICREDI Serviços >>>>[mailto:[EMAIL PROTECTED]] >>>>Sent: Wednesday, July 17, 2002 10:55 AM >>>>To: [EMAIL PROTECTED] >>>>Subject: Re: [JBoss-user] Testing EJBs with JUnit >>>> >>>> >>>>I just did a test with ejb / jaas and junit, let me know if >>>>you want so >>>>I can send it to you (about 1 meg). If someone else want too, >>>>just tell me. >>>> >>>>Emerson >>>> >>>>John Moore wrote: >>>> >>>> >>>> >>>>>Yes we're doing itfor all of our beans as well. When it's >>>>> >>>>run you need >>>> >>>> >>>>>the jndi.properties file or to pass all of the jndi on the command >>>>>line. I would guess that you don't have the classes >>>>> >>>>available (Home >>>> >>>> >>>>>/Remote interface) available. Also, could that app that you are >>>>>running through not have the classes in their path OR does >>>>> >>>>it have it's >>>> >>>> >>>>>own naming server and the properties for jboss are not >>>>> >>>>being used. Dump >>>> >>>> >>>>>out the environment before you do your lookup to see what >>>>> >>>>the properties >>>> >>>> >>>>>are set to. >>>>> >>>>>John Moore >>>>> >>>>>-----Original Message----- >>>>>From: Dimitri PISSARENKO [mailto:[EMAIL PROTECTED]] >>>>>Sent: Wednesday, July 17, 2002 6:57 AM >>>>>To: [EMAIL PROTECTED] >>>>>Subject: [JBoss-user] Testing EJBs with JUnit >>>>> >>>>> >>>>>Hello! >>>>> >>>>>Has someone experience with testing EJBs using JUnit? >>>>> >>>>>I've some entity beans and want to ensure that their basic functions >>>>>(creation, editing and deletion of records in the database) do work >>>>>properly after changes (see attachment TestProjectBean.java). >>>>> >>>>>But I get a NoClassDefFoundError when I run this test, although all >>>>>classes used are in the classpath (full stacktrace is given in >>>>>attachment 2002_07_17_stackTrace.txt). >>>>> >>>>>If I put the same statements into a normal Java application, >>>>>everything works fine. >>>>> >>>>>Any help is highly appreciated >>>>> >>>>>Dimitri Pissarenko >>>>> >>>>> >>>> >>>>-- >>>>Emerson Cargnin - MSA >>>>SICREDI - Tel : 3358-4860 >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This sf.net email is sponsored by:ThinkGeek >>>>Welcome to geek heaven. >>>>http://thinkgeek.com/sf >>>>_______________________________________________ >>>>JBoss-user mailing list >>>>[EMAIL PROTECTED] >>>>https://lists.sourceforge.net/lists/listinfo/jboss-user >>>> >>>> >>> >>> >>>------------------------------------------------------- >>>This sf.net email is sponsored by:ThinkGeek >>>Welcome to geek heaven. >>>http://thinkgeek.com/sf >>>_______________________________________________ >>>JBoss-user mailing list >>>[EMAIL PROTECTED] >>>https://lists.sourceforge.net/lists/listinfo/jboss-user >>> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > -- Emerson Cargnin - MSA SICREDI - Tel : 3358-4860 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user