You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by vnjaldawar <vn...@gmail.com> on 2012/12/28 13:52:55 UTC

EJBContainer is created for each Test class while running a batch of Junit test.

EJBContainer is created for each Test class while running a batch of Junit
test. Written a singleton class to create EJBContainer and used the initial
context in unit test to locate EJB.  Running test using junit batchtest
task.

Is there anyway to create EJBContainer once and all unit test will run?

Not sure if this query is applicable to Junit framework or OpenEJB.

Thanks in Advance.



--
View this message in context: http://openejb.979440.n4.nabble.com/EJBContainer-is-created-for-each-Test-class-while-running-a-batch-of-Junit-test-tp4659916.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: EJBContainer is created for each Test class while running a batch of Junit test.

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Dont once forkmode + manage it yourself works
Le 28 déc. 2012 12:53, "vnjaldawar" <vn...@gmail.com> a écrit :

> EJBContainer is created for each Test class while running a batch of Junit
> test. Written a singleton class to create EJBContainer and used the initial
> context in unit test to locate EJB.  Running test using junit batchtest
> task.
>
> Is there anyway to create EJBContainer once and all unit test will run?
>
> Not sure if this query is applicable to Junit framework or OpenEJB.
>
> Thanks in Advance.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/EJBContainer-is-created-for-each-Test-class-while-running-a-batch-of-Junit-test-tp4659916.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>