For org.jboss.arquillian.container:arquillian-weld-se-embedded-1.1:1.0.0.CR9 the test passes.
For org.jboss.arquillian.container:arquillian-weld-ee-embedded-1.1:1.0.0.CR9 I get a NPE but the stack is different (NPE is thrown later inside AbstractResourceInjection.getResourceReference(CreationalContext<?>)) - this is because of https://github.com/arquillian/arquillian-container-weld/commit/82e748d90b80fcf2e0b9077ec0bce30141d8f088.
So I believe it's more an arquillian-weld-ee-embedded-1.1 issue. MockResourceReferenceFactory should be easily fixed - I'm going to create a ticket and send a pull request.
|