[arquillian-issues] [JBoss JIRA] (ARQGRA-337) Disallow initialization of page abstractions which has non-private members

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Oct 2 09:19:02 EDT 2013


     [ https://issues.jboss.org/browse/ARQGRA-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated ARQGRA-337:
------------------------------

    Priority: Major  (was: Critical)

    
> Disallow initialization of page abstractions which has non-private members
> --------------------------------------------------------------------------
>
>                 Key: ARQGRA-337
>                 URL: https://issues.jboss.org/browse/ARQGRA-337
>             Project: Arquillian Graphene
>          Issue Type: Enhancement
>            Reporter: Lukáš Fryč
>             Fix For: 2.1-Tracking
>
>
> It is not allowed to access Graphene-injected page abstractions directly through field references because then the object's calls can't be intercepted:
> {code:java}
> // not allowed
> class Page {
>    @FindBy(...)
>    Tree tree;
> }
> {code}
> The accessors should be used instead:
> {code:java}
> // allowed
> class Page {
>    @FindBy(...)
>    private Tree tree;
>    public Tree tree() {
>       return tree;
>    }
> }
> {code}
> We need to disallow that - either provide a warning or fail.

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