[arquillian-issues] [JBoss JIRA] (ARQGRA-310) initialized public field of page object is reinitialized to null

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Sep 3 06:15:04 EDT 2013


    [ https://issues.jboss.org/browse/ARQGRA-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801077#comment-12801077 ] 

Lukáš Fryč commented on ARQGRA-310:
-----------------------------------

I wonder who touches the By field, afaik there is no enricher for that, is it?
                
> initialized public field of page object is reinitialized to null
> ----------------------------------------------------------------
>
>                 Key: ARQGRA-310
>                 URL: https://issues.jboss.org/browse/ARQGRA-310
>             Project: Arquillian Graphene
>          Issue Type: Bug
>            Reporter: Jiří Štefek
>            Assignee: Juraj Húska
>
> When one has a page object with initialized public field like this:
> https://github.com/richfaces/richfaces-qa/blob/212c0bf1c97de103e4fb381319a01a1d63317efb/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/a4jRepeat/MatrixPage.java#L51
> and he uses it in test:
> https://github.com/richfaces/richfaces-qa/blob/212c0bf1c97de103e4fb381319a01a1d63317efb/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/a4jRepeat/TestMatrix.java#L60
> then he gets:
> https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RichFaces/view/5.0/job/richfaces-5.0-metamer--server-compatibility-core/12/CONTAINER=jbossas-managed-7-1,jdk=java17_default,label=RHEL6/testReport/junit/org.richfaces.tests.metamer.ftest.a4jRepeat/TestMatrix/testInitialStateOfMatrix/
> The cause is, that the field is reinitialized to null in that @Page object.
> There is an easy workaround: do not use public fields in @Page objects.

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