[arquillian-issues] [JBoss JIRA] (ARQGRA-413) @InFrame incompatible with GrapheneElement

Juraj Húska (JIRA) jira-events at lists.jboss.org
Mon Dec 2 05:42:05 EST 2013


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

Juraj Húska commented on ARQGRA-413:
------------------------------------

Thank you [~dosoudilj] for very good analysis!

Lukas, I have sent a pull request to resolve this issue. Please see also the PR comments.
                
> @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
>
> {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



More information about the arquillian-issues mailing list