Mark, could you please describe the problem in more detail?
WithAnnotationsAppliedToIllegalContainerLifecycleEventParameterTest does not try to use the BeanManager. I suppose the problem is with the injection point on the org.jboss.cdi.tck.AbstractTest (each TCK test class extends this class) - but AFAIK CDIInjectionEnricher always tries to lookup the BeanManager and inject the test class, no matter whether it has some injection points or not.
Maybe there's a problem in a way Arquillian/BeanManagerProducer looks up the BM. If it doesn't find the BM via JNDI, it's using a CDIExtension and this class holds a BM reference in a static field. In this particular case weld-embedded is not affected because Weld is validating extensions before any container lifecycle event is delivered.
Also this shouldn't be a problem for managed and remote containers, because @ShouldThrowException will force the client test run mode (the test archive is not enhanced).
|