[arquillian-issues] [JBoss JIRA] (ARQ-561) Make Arquillian compatible with JUnit Parametrized runner

Karel Piwko (JIRA) jira-events at lists.jboss.org
Tue Jan 24 07:00:18 EST 2012


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

Karel Piwko commented on ARQ-561:
---------------------------------

Aslak,

this workaround is useful only in a limited set of use cases.
Here are the problems I've encountered:

1/ @Rule enricher is triggered before the Arquillian one...I was not able for example to do the following:

{code}
    @Inject
    HelloService service1;

    @Inject
    HelloService service2;

    HelloService ruleService;

    @Rule
    public MethodRule dataProvider = new ParameterRule("ruleService", service1, service2);
{code}

    It is clear the only way how to change that is to have a @Rule annotated method, which is not possible in JUnit currently

2/ Test method is reported as a single execution although it actually contains multiple tests
3/ MethodRule is deprecated

Open question: Why do the sample implementation skip parameter enrichement while not running in container?
                
> Make Arquillian compatible with JUnit Parametrized runner
> ---------------------------------------------------------
>
>                 Key: ARQ-561
>                 URL: https://issues.jboss.org/browse/ARQ-561
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Test Harness Integration
>            Reporter: Ondrej Skutka
>              Labels: arq_qe_blocker
>
> Make Arquillian runner compatible with JUnit's Parametrized runner (org.junit.runners.Parameterized).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list