[jboss-jira] [JBoss JIRA] (AS7-3636) Multi deployment does not work for Arquillian for AS7 protocol
Ondřej Chaloupka (JIRA)
jira-events at lists.jboss.org
Mon Feb 6 09:21:48 EST 2012
Ondřej Chaloupka created AS7-3636:
-------------------------------------
Summary: Multi deployment does not work for Arquillian for AS7 protocol
Key: AS7-3636
URL: https://issues.jboss.org/browse/AS7-3636
Project: Application Server 7
Issue Type: Bug
Components: Test Suite
Affects Versions: 7.1.0.CR1b
Reporter: Ondřej Chaloupka
Assignee: Aslak Knutsen
Priority: Minor
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:
{code}
@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());
...
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list