[arquillian-issues] [JBoss JIRA] (ARQGRA-308) Should throw exception if page fragment not instantiable

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon Sep 9 03:36:03 EDT 2013


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

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

The exception should be thrown in this case, since the fix is pretty straight-forward.

It's a user's mistake to define non-instantiable class and test shouldn't even start when such an issue occurs -> so, throw exception.
                
> Should throw exception if page fragment not instantiable
> --------------------------------------------------------
>
>                 Key: ARQGRA-308
>                 URL: https://issues.jboss.org/browse/ARQGRA-308
>             Project: Arquillian Graphene
>          Issue Type: Bug
>    Affects Versions: 2.0.0.Alpha4
>            Reporter: Bernard Labno
>            Assignee: Juraj Húska
>             Fix For: 2.0.0.Beta1
>
>
> If page fragment is inner final class then it's not injected into field annotated with @FindBy and no exception is thrown.
> Graphene should throw exception that desired class cannot be instantiated.
> Right now user spends lots of time debugging and wondering if the selector is wrong. It's hard to find out that it's the "final" word to be blamed here:
> public static final class InvitedSupplier

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