AnsweredAssumed Answered

CDI in JUnit

Question asked by yuryshaban on Nov 25, 2014
Latest reply on Nov 26, 2014 by yuryshaban

I'm using nice JEE7 stuff named CDI. It's very useful one and I'm (personally) happy that activiti works with CDI properly. Thanks a lot!

But I've got a question:
at runtime CDI works great, but, seems, if I'm trying to run JUnit tests - CDI injects of <? extends JavaDelegate> don't work.
In my case 'CDI injects' is using @Inject to get local EJB beans.

Is it possible to use CDI injecting with JUnit? If it is - please, explain, how.

Thanks in advance!

We are using Activiti 5.16.3 and akquinet/needle.