-
1. Re: Test with Arquillian's ContainerController not deploying artifacts
kpiwko Nov 12, 2013 6:36 AM (in response to steven.tay)Hi Steven,
deployment is always created before the container is started. What should matter though, is when that archive is deployed, which should be indeed executed after the server is started.
Can you run with -Darquillian.debug=true to see when deployment happens?
Few more things to try:
1/ Inject @EJB as test method parameter - is it still null?
2/ Inject CDI bean or something non EJB from archive - does this work?
2/ Inject @ArquillianResource Deployer and deploy archive manually in setUp() method - any changes?
Thanks,
Karel
-
2. Re: Test with Arquillian's ContainerController not deploying artifacts
sai.kiran.nukala Jan 11, 2015 6:43 AM (in response to steven.tay)Hi Steven,
I think you may have to specify the Arquillian that you are managing the deployments using "managed=false":
@TargetsContainer("my-jboss-qualifier")
@Deployment(managed=false, name="my-jboss-qualifier-deployment")
public static EnterpriseArchive createDeployment() {
// Some codes to generate archive
return earFile;
}
Thanks - Sai