-
Bug
-
Resolution: Obsolete
-
Minor
-
None
-
None
-
None
For Arquillian the multideployment does not work over AS7 protocol. This issue was discussed with Aslak Knutsen and you can check the forum https://community.jboss.org/message/714601 for more details.
When you want to create two deployments (two jars to deploy) in a one test file and each deployment has its own test (test operates on the deployment) then test does not find correct module in which is executed. One test passes while second one fails with CNFE when it tries to make JNDI lookup for own session bean.
The test class is like this:
@Deployment(managed=true, testable = true, name = "postconstruct", order = 1) public static Archive<?> deploy() { ... return jar1; } @Deployment(managed=true, testable = true, name = "postconstruct2", order = 2) public static Archive<?> deploy2() { ... return jar2; } @Test @OperateOnDeployment("postconstruct") public void test() throws NamingException { CountedSessionBean bean = (CountedSessionBean) ctx.lookup("java:global/postconstruct/" + CountedSessionBean.class.getSimpleName()); ... } @Test @OperateOnDeployment("postconstruct2") public void test2() { CountedSessionBean2 bean = (CountedSessionBean2) ctx.lookup("java:global/postconstruct2/" + CountedSessionBean2.class.getSimpleName()); ... }
- causes
-
WFLY-10478 The Arquillian @OperateOnDeployment doesn't always run the test on the correct container
- Open
- is duplicated by
-
ARQ-1222 @OperateOnDeployment ignores value and operates on random deployment in in-container test
- Closed
- relates to
-
ARQ-910 JNDI lookup fails for @EJB mappedName when the bean has more instances
- Open