[arquillian-issues] [JBoss JIRA] (ARQGRA-309) nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
Jiří Štefek (JIRA)
jira-events at lists.jboss.org
Tue Nov 12 06:58:06 EST 2013
[ https://issues.jboss.org/browse/ARQGRA-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922712#comment-12922712 ]
Jiří Štefek edited comment on ARQGRA-309 at 11/12/13 6:58 AM:
--------------------------------------------------------------
Updated the description.
Sorry for the late response.
[~lfryc] you mean accessing protected field _tree_ without a getter? I`ve tried replacing it with getter, but with the same result.
was (Author: jstefek):
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/src/test/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeToggling.java#L55] 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
More information about the arquillian-issues
mailing list