[arquillian-issues] [JBoss JIRA] (ARQ-1222) @OperateOnDeployment ignores value and operates on random deployment in in-container test
Ron Šmeral (JIRA)
jira-events at lists.jboss.org
Mon Nov 26 12:31:21 EST 2012
Ron Šmeral created ARQ-1222:
-------------------------------
Summary: @OperateOnDeployment ignores value and operates on random deployment in in-container test
Key: ARQ-1222
URL: https://issues.jboss.org/browse/ARQ-1222
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Deployable Containers SPI
Affects Versions: 1.0.3.Final
Environment: EAP 6.0.1.ER3, JDK 1.7.0_07
Reporter: Ron Šmeral
The following (in-container) test sometimes passes and other times fails with {{java.lang.NoClassDefFoundError}} for {{B}}.
It seems that the order of declaration of {{@Deployment}} methods has influence on the frequency of failures.
{{A}} and {{B}} are empty dummy classes.
{code:title=OperateOnDeploymentTest.java}
@RunWith(Arquillian.class)
public class OperateOnDeploymentTest {
@Deployment(name = "A")
public static Archive<?> deployA() {
return ShrinkWrap.create(WebArchive.class).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").
.addClass(A.class);
}
@Deployment(name = "B")
public static Archive<?> deployB() {
return ShrinkWrap.create(WebArchive.class).addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").
.addClass(B.class);
}
@Test
@OperateOnDeployment("B")
public void testB() {
B.class.getName();
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list