Why are the injection points in my test null?

If the injection points in your tests (e.g., fields annotated with @Inject) are null, make sure you're running against a CDI capable container. And remember you have to include a /META-INF/beans.xml file in your deployment for CDI to kick in.


Note that as of JBoss AS 6.0.0.M3, if you have EJBs in your WAR, then the CDI injections won't work because the BeanManager will not be found in JNDI. The workaround is to use an EAR deployment.