[arquillian-issues] [JBoss JIRA] (ARQGRA-382) @InitialPage does not work for Field

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Sun Sep 29 14:38:02 EDT 2013


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

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

[~jhuska], was that intentional to implement {{@InitialPage}} only for methods with no support for [fields|https://github.com/arquillian/arquillian-graphene/blob/eaacc4257b599b342c32e349c6a64fe570f7300e/impl/src/main/java/org/jboss/arquillian/graphene/location/LocationEnricher.java#L53]?
                
> @InitialPage does not work for Field
> ------------------------------------
>
>                 Key: ARQGRA-382
>                 URL: https://issues.jboss.org/browse/ARQGRA-382
>             Project: Arquillian Graphene
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0.CR1
>            Reporter: Karel Piwko
>
> While @InitialPage allows to be used on test class field, it does not do anything.
> {code}
> @InitialPage AddUserPage page;
> @Test
> void test() {
>     page.foo()
> }
> {code}
> raises
> {code}
> java.lang.NullPointerException: null
>         at com.acme.example.test.DroneTest.addUser(DroneTest.java:35)
> {code}

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