Right cause the runner = the test so it is found automatically. To skip it
and only pick up @Managedbean tests add a property:
@org.apache.openejb.junit.jee.config.Property(key =
"openejb.additionnal.callers", value = "org.junit.Assert")

The value being anything which will get scanned but you can ignore.





Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-04-21 11:15 GMT+02:00 amber <[email protected]>:

> ok, my bad, back to junit 4.11 (works better!)
>
> but still problems with@ManagedBean, based on this  article
> <
> https://rmannibucau.wordpress.com/2014/04/24/ejbcontainerrunner-or-test-with-ejbcontainer-easily/
> >
> I got now this error :
>
> Avertissement - WARN ... EjbModule1275312335:   The application
> [EjbModule1275312335] uses @Inject but CDI is not enabled. Maybe youd need
> to add a beans.xml file.
> Avertissement - 1 warning for EjbModule(path=EjbModule1275312335)
> Infos - Enterprise application "C:\J2EE\JEE6\projects\cdi-basic" loaded.
> Infos - Assembling app: C:\J2EE\JEE6\projects\cdi-basic
> Infos -
>
> Jndi(name="java:global/cdi-basic/CourseTest!org.superbiz.cdi.basic.CourseTest")
> Infos - Jndi(name="java:global/cdi-basic/CourseTest")
> Infos -
> Jndi(name="java:global/cdi-basic/Course!org.superbiz.cdi.basic.Course")
> Infos - Jndi(name="java:global/cdi-basic/Course")
> Grave - Jndi name could not be bound; it may be taken by another ejb.
>
> Jndi(name=openejb/Deployment/CourseTest/org.superbiz.cdi.basic.CourseTest!LocalBeanHome)
> Infos - Undeploying app: C:\J2EE\JEE6\projects\cdi-basic
>
> new zip joined :
>
> cdi-basic.zip
> <http://tomee-openejb.979440.n4.nabble.com/file/n4674550/cdi-basic.zip>
>
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/openEJB-perfs-tp4674462p4674550.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to