[arquillian-issues] [JBoss JIRA] (ARQ-286) Should support JUnit @Rules
Luca Stancapiano (JIRA)
issues at jboss.org
Wed Sep 23 10:18:01 EDT 2015
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13111728#comment-13111728 ]
Luca Stancapiano commented on ARQ-286:
--------------------------------------
I'm triing arquillian 1.1.7 with the same code in mode 'in container' so:
{code:java}
@RunWith(Arquillian.class)
public class TestCase
{
@Rule
public ExpectedException e = ExpectedException.none();
@Test
public void test()
{
e.expect(RuntimeException.class)
throw new RuntimeException();
}
}
{code}
I see that the rule is executed anyhow in the client side. Should it run in the container side?
> 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.4.11#64026)
More information about the arquillian-issues
mailing list