[arquillian-issues] [JBoss JIRA] Commented: (ARQ-336) Inject container references in the test to start/stop containers

Karel Piwko (JIRA) jira-events at lists.jboss.org
Mon Jul 18 12:37:23 EDT 2011


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

Karel Piwko commented on ARQ-336:
---------------------------------

We already had a two state logic in Arquillian - RunAs(CLIENT, INCONTAINER) and it was replaced in Alpha5. Couldn't we move this to the class directly?

Something like:
{code}

@ContainerSuiteLifecycle
class FooTest {
   ...
}

{code}

@ContainerManualLifecycle("jboss1")
@ContainerClassLifecycle("jboss2", "jboss3")
class Foo2Test {
    @Deployment
    @TargetsContainer("jboss1")
    ...
}

{code}

In XML/XSD, this mapping would correspond rather to an element than attribute, so user can easily provide his own implementation
and not depend on suite/class/manual possibilities, similar to protocols.





> Inject container references in the test to start/stop containers
> ----------------------------------------------------------------
>
>                 Key: ARQ-336
>                 URL: https://issues.jboss.org/browse/ARQ-336
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Base Implementation
>            Reporter: Jean Deruelle
>            Assignee: Martin Gencur
>
> Useful to test HA configuration and failover.
> Start 3 instances of JBoss AS in cluster mode target one of them and be able to kill it and start new nodes on demand to test failover.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list