[
https://issues.jboss.org/browse/ARQGRA-413?page=com.atlassian.jira.plugin...
]
Lukáš Fryč updated ARQGRA-413:
------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 2.0.1.Final
Resolution: Done
@InFrame incompatible with GrapheneElement
------------------------------------------
Key: ARQGRA-413
URL:
https://issues.jboss.org/browse/ARQGRA-413
Project: Arquillian Graphene
Issue Type: Bug
Affects Versions: 2.0.0.Final
Reporter: Jan Dosoudil
Assignee: Juraj Húska
Fix For: 2.0.1.Final
{code:title=Exception}
Caused by: java.lang.NullPointerException
at
org.jboss.arquillian.graphene.enricher.ReflectionHelper$3.run(ReflectionHelper.java:214)
at
org.jboss.arquillian.graphene.enricher.ReflectionHelper$3.run(ReflectionHelper.java:208)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.arquillian.graphene.enricher.ReflectionHelper.getFieldsWithAnnotation(ReflectionHelper.java:208)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrichFurtherSpecificAnnotation(InFrameEnricher.java:101)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrichRecursivelyGrapheneProxyInstances(InFrameEnricher.java:93)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.registerInFrameInterceptor(InFrameEnricher.java:86)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrichFurtherSpecificAnnotation(InFrameEnricher.java:107)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrichRecursivelyGrapheneProxyInstances(InFrameEnricher.java:93)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.registerInFrameInterceptor(InFrameEnricher.java:86)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrichFurtherSpecificAnnotation(InFrameEnricher.java:107)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrichRecursivelyGrapheneProxyInstances(InFrameEnricher.java:93)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.registerInFrameInterceptor(InFrameEnricher.java:86)
at
org.jboss.arquillian.graphene.enricher.InFrameEnricher.enrich(InFrameEnricher.java:61)
... 68 more
{code}
{code}
@RunWith(Arquillian.class)
@WarpTest
@RunAsClient
public class Test {
@FindBy(id="x")
@InFrame(nameOrId="y")
private GrapheneElement el;
....
}
{code}
InFrameEnricher declares DO_NOT_ENRICH_FURTHER Set which is used to ignore some
interfaces but doesn't ignore descendants - ignores WebElement but not
GrapheneElement.
ReflectionHelper doesn't handle Interfaces well.
--
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