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

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Wed Jun 26 09:59:21 EDT 2013


Jiří Štefek created ARQGRA-310:
----------------------------------

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


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