This content has been marked as final. 
    
Show                 1 reply
    
- 
        1. Re: Use WeldContainer to inject Beans and other dependencies into a Junit test?mkouba Aug 16, 2016 8:34 AM (in response to brucespringfield)Yes, why not. However, you should also destroy the @Dependentbean instances correctly. You could also try theInjectionTargetor theUnmanagedhelper class - see also http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#bm_obtain_unmanaged_instance.
 
    