[arquillian-issues] [JBoss JIRA] (ARQ-286) Should support JUnit @Rules
Falko M. (JIRA)
jira-events at lists.jboss.org
Fri Sep 27 03:43:03 EDT 2013
[ https://issues.jboss.org/browse/ARQ-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12807804#comment-12807804 ]
Falko M. commented on ARQ-286:
------------------------------
I stumbled upon this issue when trying to look up something from JNDI within my custom junit rule. And then I saw it is executed twice...
{quote}
In the end the behavior for the @Rule annotation should be the same as for @Before/@After (execute the rule only on the container if we are in Client mode).
{quote}
I think so!
> 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
> Fix For: 2.0.0.CR1
>
>
> 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 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