[arquillian-issues] [JBoss JIRA] (ARQ-286) Should support JUnit @Rules

Luca Stancapiano (JIRA) issues at jboss.org
Fri Sep 25 06:06:00 EDT 2015


    [ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112455#comment-13112455 ] 

Luca Stancapiano commented on ARQ-286:
--------------------------------------

Ok I reproduced the problem I met. In the RuleTest there is a runtime exception that is throwed if the test is not in the server side, so the rules.Container class starts only once and my test fail. Only a question. Can I choose if run the test only in a mode instead of both leaving the exception inside the instantiation of the rule?

I updated the git project with the issue

> 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