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

Michal Matloka (JIRA) jira-events at lists.jboss.org
Tue Mar 5 17:34:56 EST 2013


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

Michal Matloka commented on ARQ-917:
------------------------------------

Basing on [~dan.j.allen] ideas from previous comment, maybe in future with Java 8 something like this will be possible:
{code}
@RunWith(Arquillian.class)
@ReadDeploymentFrom(Deployments::myDeploymentMethod)
public class MyTest {
}
{code}

                
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list