[jbosstools-issues] [JBoss JIRA] (JBIDE-14430) Run as arquillian seem to *always* ask for there being exactly one implementation of DeploymentContainer - can't it detect it ?

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Sat May 18 03:44:06 EDT 2013


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

Aslak Knutsen commented on JBIDE-14430:
---------------------------------------

Sure, you could scan for multiple classes that implement the interface DeploybleContainer, but it might give you false positives. 

The setup is:

{code:title=META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension}
MyLoadableExtensionClass
{code}

{code}
class MyLoadableExtensionClass implements LoadableExtension {
  void build(Builder b) {
    b.service(DeplyableContianer.class, MyDeployableContianer.class)
  }
}
{code}

MyLoadableExtensionClass could have logic in it when registrering the DeploybleContainer impls, meaning multiple might be found on classpath, but only one will be active.

Another possibility is that an Extension could override the default 'only one container allowed' restriction. 
 
                
> Run as arquillian seem to *always* ask for there being exactly one implementation of DeploymentContainer - can't it detect it ?
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-14430
>                 URL: https://issues.jboss.org/browse/JBIDE-14430
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: testing-tools
>            Reporter: Max Rydahl Andersen
>            Assignee: Snjezana Peco
>             Fix For: 4.1.0.Beta2
>
>
> can't we detect if there is more than one DeploymentContainer for Run As > Arquillian test or is that too slow ?
> Or at least show which profile is enabled or something to give user an idea what he is currently running with.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list