[arquillian-issues] [JBoss JIRA] (ARQGRA-214) Support for enriching by Page Objects and Page Fragments declared as nested classes

Juraj Húska (JIRA) jira-events at lists.jboss.org
Tue Oct 30 11:59:01 EDT 2012


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

Juraj Húska updated ARQGRA-214:
-------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/arquillian/arquillian-graphene/pull/53


This pull request should also solve this issue. There are also tests for it.
                
> Support for enriching by Page Objects and Page Fragments declared as nested classes
> -----------------------------------------------------------------------------------
>
>                 Key: ARQGRA-214
>                 URL: https://issues.jboss.org/browse/ARQGRA-214
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>          Components: core, ftest
>    Affects Versions: 2.0.0.Alpha2
>            Reporter: Juraj Húska
>            Assignee: Juraj Húska
>
> This approach can be used for inner classes:
> {code}
> Class<?> outerClass = declaredClass.getDeclaringClass();
>                 // check whether declared page object is not nested class
>                 if (outerClass != null) {
>                     Constructor<?> construtor = declaredClass.getDeclaredConstructor(new Class[] { outerClass });
>                     page = construtor.newInstance(new Object[] { outerClass.newInstance() });
>                 } else {
>                     page = declaredClass.newInstance();
>                 }
> {code}
> There is need for finding way of initializing static nested classes.
> It has to be done both for Page Objects and Page Fragments initialization.

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