[arquillian-issues] [JBoss JIRA] (ARQGRA-214) Support for enriching by Page Objects and Page Fragments declared as nested classes
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Tue Oct 30 12:03:01 EDT 2012
[ https://issues.jboss.org/browse/ARQGRA-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukáš Fryč updated ARQGRA-214:
------------------------------
Fix Version/s: 2.0.0.Alpha3
> 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
> Fix For: 2.0.0.Alpha3
>
>
> 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