This content has been marked as final.
Show 3 replies
-
1. Re: how to JUNIT test ejb3
bill.burke Oct 3, 2005 4:32 PM (in response to lazybeans)mayb e I am ignorant, but I thought junit called setup at the beginning anyways?
Also, as far as the 6 seconds goes, all I can say is that we're working on speeding it up. -
2. Re: how to JUNIT test ejb3
bill.burke Oct 6, 2005 1:04 PM (in response to lazybeans)Ok, after researching a little bit, here's a solution:
public static Test suite() throws Exception { TestSuite suite = new TestSuite(); suite.addTestSuite(EmbeddedEjb3TestCase.class); // setup test so that embedded JBoss is started/stopped once for all tests here. TestSetup wrapper = new TestSetup(suite) { protected void setUp() { startupEmbeddedJboss(); } protected void tearDown() { shutdownEmbeddedJboss(); } }; return wrapper; }
implement static methods startup and shutdownEmbeddedJboss and you are good to go.
I will have a Junit testing example in the next release. -
3. Re: how to JUNIT test ejb3
pjvv1 Oct 12, 2005 5:51 AM (in response to lazybeans)Where can I find a tutorial of how to use JUnit with ejb3 (also with JBossIDE)?
I'm new at ejb3, jboss-ide and junit and I'm completely lost.
Thanks a lot.
Regards.
Pedro