[arquillian-issues] [JBoss JIRA] (ARQ-286) Should support JUnit @Rules
Stefan Miklosovic (JIRA)
issues at jboss.org
Mon Jun 23 05:53:26 EDT 2014
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978489#comment-12978489 ]
Stefan Miklosovic commented on ARQ-286:
---------------------------------------
It seems to me that it is still failing in RunAsClient scenario. Consider this:
{code}
@RunWith(Arquillian.class)
@RunAsClient
public class TestCase
{
@Rule
public ExpectedException e = ExpectedException.none();
@Test
public void test()
{
e.expect(RuntimeException.class)
throw new RuntimeException();
}
}
{code}
Observing org.jboss.arquillian.test.spi.event.suite.After and org.jboss.arquillian.test.spi.event.suite.After still tells me that result.getStatus() == Status.FAILED is true.
Should I file related jira or client mode was not treated yet?
Thanks
> Should support JUnit @Rules
> ---------------------------
>
> Key: ARQ-286
> URL: https://issues.jboss.org/browse/ARQ-286
> Project: Arquillian
> Issue Type: Feature Request
> Components: Test Harness Integration
> Reporter: Aslak Knutsen
> Assignee: Aslak Knutsen
> Fix For: 1.1.5.Final
>
>
> Using the JUnit feature @Rule becomes a problem when running against Remote servers since the @Rule is executed both on the Client and Container side.
> It works fine in Embedded Containers since the Test is executed in the same VM, but if the Rule is dependent on Container features, the @Test will fail.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the arquillian-issues
mailing list