[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
Sun Oct 14 12:08:01 EDT 2012


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

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