The best examples I have seen are Scott's security tests and (to be immodest) my "jmx" tests. If you base your test classes off of JBossTestCase and JBossTestSuite you'll have deployment/undeployment services from these base classes. Please be sure to undeploy everything you deploy at the end of the test;-)
I case you aren't too familiar with junit... in a Test, setUp and tearDown are executed before and after each test. If you want a setup for a whole series of tests, use [JBoss]TestSetup to wrap a suite: this will setup once before the suite begins and teardown after all the tests run (Thanks to Scott for pointing this out to me after I removed several of them;-) JBossTestCase has one test built in -- it just gets the mbean server. This is intended as kind of a sanity check-- if this fails there is something wrong with your setup code. Ask if you have more questions. david jencks On 2001.12.05 18:48:27 -0500 Andreas Schaefer wrote: > Hi Geeks > > I want to write a JUnit testsuite for JSR-77 EJB. > Can a JUnit Guru tell me which one of the existing > one in JBoss is should take as a template ? > > Thanx > > xxxxxxxxxxxxxxxxx > Andreas Schaefer > Senior Consultant > JBoss Group, LLC > xxxxxxxxxxxxxxxxx > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
