[arquillian-issues] [JBoss JIRA] Commented: (ARQ-566) Support injection of MSC Services in AS7 Container

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Mon Aug 29 10:49:26 EDT 2011


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

Aslak Knutsen commented on ARQ-566:
-----------------------------------

MSCEnricher kinda supports this already.

https://github.com/jbossas/jboss-as/blob/master/arquillian/testenricher-msc/src/main/java/org/jboss/arquillian/testenricher/msc/MSCTestEnricher.java

{code}
@Inject ServiceContainer container;

@Test
public void should() {
  container.getService(SomeServiceName).doSomething()
}
{code}

That work for you? Your Test deployment probably need to add a module dep to the "WebModule"

> Support injection of MSC Services in AS7 Container
> --------------------------------------------------
>
>                 Key: ARQ-566
>                 URL: https://issues.jboss.org/browse/ARQ-566
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JBoss Containers
>            Reporter: Ivo Studensky
>
> It would be nice to have a support for the injection of a MSC Service into tests powered by Arquillian. For example, we need to inject the WebServer service of the JBossWeb module into a test and call the getConnector method directly on it. One possibility is to use a Management API layer, but this is targeted for end users and so does not expect to include all methods of MSC services. Hence, it is needed for QE tests to have a way to get the service itself and be able to play with it directly.

--
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