[arquillian-issues] [JBoss JIRA] (ARQ-561) Make Arquillian compatible with JUnit Parametrized runner
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Tue Jan 24 09:22:18 EST 2012
[ https://issues.jboss.org/browse/ARQ-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661437#comment-12661437 ]
Aslak Knutsen commented on ARQ-561:
-----------------------------------
If we're only talking about asserting on multiple injections and not 'large' datasets it would be just as easy to write it as:
{code}
@RunWith(Arquillian.class)
public class TestMultipleSimilarServices {
@Deployment
public static JavaArchive() { ... }
@Test
public void shouldAssertService1(Service1 service) {
doAssertion("some1", service)
}
@Test
public void shouldAssertService2(Service2 service) {
doAssertion("some2", service)
}
private void doAssertion(String expected, Service service) {
Assert.assertEquals(expected, service.something());
}
}
{code}
> 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