[JBoss JIRA] (ARQGRA-337) Disallow initialization of page abstractions which has non-private members
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-337?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-337:
------------------------------
Fix Version/s: 2.0-Tracking
> 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.0-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
11 years, 4 months