[JBoss JIRA] (ARQGRA-382) Make @InitialPage work for Field
by Vsevolod Golovanov (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-382?page=com.atlassian.jira.plugin... ]
Vsevolod Golovanov commented on ARQGRA-382:
-------------------------------------------
Meanwhile InitialPage's javadoc's first usage example places it on a field.
> Make @InitialPage work for Field
> --------------------------------
>
> Key: ARQGRA-382
> URL: https://issues.jboss.org/browse/ARQGRA-382
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Components: core
> Affects Versions: 2.0.0.CR1
> Reporter: Karel Piwko
> Fix For: 2.0-Tracking
>
>
> 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 was sent by Atlassian JIRA
(v7.2.3#72005)