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

Karel Piwko (JIRA) jira-events at lists.jboss.org
Mon Sep 30 04:06:02 EDT 2013


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

Karel Piwko commented on ARQGRA-382:
------------------------------------

Given that *initial ~ existing or occurring at the beginning*, this can be both understood as BeforeClass (my understanding) and Before (your understanding). However, all other fields in tests preserve the state among tests, so Before would be an exception.

That said, I would either prefer to remove the possibility of annotating a field or making a paramater to @InitialPage, which would additionally alter it's behavior - e.g. where do you want URL to be fired, which some reasonable default identified by broader audience.

Nice Enhancement for post 2.0.0.GA release?


                
> @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
>             Fix For: 2.0.0.Final
>
>
> 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