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

Martin Gencur (JIRA) jira-events at lists.jboss.org
Wed Jun 29 15:04:24 EDT 2011


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

Martin Gencur commented on ARQ-336:
-----------------------------------

I just tested my implementation in a real test and with @RunAsClient it works fine. When I use incontainer mode (regardless whether after/before another test method annotated with @RunAsClient) arquillian cannot lookup ContainerController: 

Caused by: java.lang.RuntimeException: Provider for type interface org.jboss.arquillian.container.test.api.ContainerController returned a null value: org.jboss.arquillian.container.test.impl.enricher.resource.ContainerControllerProvider

And I think it's correct to use only Client mode since we want to start/stop/server instances and we cannot run test inside them when we're actually interrupting them.

I will soon post the implementation along with a real test that is using it.

> 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