[arquillian-issues] [JBoss JIRA] (ARQ-917) Support the use of @Deployment on a static field

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Sun May 13 14:23:17 EDT 2012


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

Aslak Knutsen commented on ARQ-917:
-----------------------------------

In what container have you tested this?

It being a field, won't it be initialized when accessing/loading the class and fail to execute shrinkwrap in a managed/remote container?
                
> Support the use of @Deployment on a static field
> ------------------------------------------------
>
>                 Key: ARQ-917
>                 URL: https://issues.jboss.org/browse/ARQ-917
>             Project: Arquillian
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: Base Implementation
>    Affects Versions: 1.0.0.Final
>            Reporter: Dan Allen
>            Priority: Minor
>
> To cut down on verbosity and visual clutter for simple use cases, allow the use of a static field to define a @Deployment. If logic is required to build the deployment, a static block can be used. This also caters well when delegating to a static method.
> See examples in this gist: https://gist.github.com/2640101

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