[
https://issues.jboss.org/browse/ARQGRA-309?page=com.atlassian.jira.plugin...
]
Jiří Štefek commented on ARQGRA-309:
------------------------------------
Updated the description.
Sorry for the late response.
[~lfryc] you mean accessing protected field tree without a getter? I`ve tried this, but
with the same result.
nested list of page fragments in page fragment is wrongly initialized
within TestNG's @BeforeMethod method
----------------------------------------------------------------------------------------------------------
Key: ARQGRA-309
URL:
https://issues.jboss.org/browse/ARQGRA-309
Project: Arquillian Graphene
Issue Type: Bug
Environment: graphene webdriver 2.0.0.Beta1-SNAPSHOT
Reporter: Jiří Štefek
Assignee: Juraj Húska
Priority: Critical
Fix For: 2.0-Tracking
Stack trace:
{code}
org.jboss.arquillian.graphene.enricher.exception.PageFragmentInitializationException:
java.lang.IllegalStateException: Drone Context must not be null
at
org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:171)
at
org.jboss.arquillian.graphene.enricher.PageFragmentEnricher$1.getTarget(PageFragmentEnricher.java:123)
at
org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
at
org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:186)
at
org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:159)
at
org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
at
org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
at
org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
at com.sun.proxy.$Proxy37.iterator(Unknown Source)
at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064)
at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063)
at
org.richfaces.tests.page.fragments.impl.tree.RichFacesTree$AdvancedTreeInteractionsImpl.getNodesCollapsed(RichFacesTree.java:131)
at
org.richfaces.tests.metamer.ftest.richTree.TestTreeToggling.checkInitialState(TestTreeToggling.java:57)
Caused by: java.lang.IllegalStateException: Drone Context must not be null
at org.jboss.arquillian.drone.impl.Validate.stateNotNull(Validate.java:29)
at
org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:103)
at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:72)
at
org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher.enrichRecursively(AbstractSearchContextEnricher.java:70)
at
org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:156)
... 48 more
{code}
Fails, when
[
this|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/...]
method (_checkInitialState_) is annotated with @BeforeMethod.
--
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