[JBoss JIRA] (ARQGRA-325) Support for injecting custom settings into Page Fragments/objects
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-325?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-325:
-----------------------------------
What kind of settings you would like to set?
> Support for injecting custom settings into Page Fragments/objects
> -----------------------------------------------------------------
>
> Key: ARQGRA-325
> URL: https://issues.jboss.org/browse/ARQGRA-325
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core, unit-test
> Affects Versions: 2.0.0.Alpha4
> Reporter: Juraj Húska
>
> It would be nice if Graphene provides a way how to uniformly inject custom settings for the Page Fragments/objects.
> It should work on annotation level, e.g.
> {code}
> public class Test {
>
> @FindBy @Settings(MyJSAPISettings.class)
> private MyPageFragment myFragment;
> }
> {code}
> which would inject instance of {{MyJSAPISettings.class}} to the {{MyPageFragment}} object.
> Also it should support injecting of the settings on a global level, in arquillian.xml, e.g.
> {code:xml}
> <extension qualifier="graphene">
> <property name="settings">MyJSAPISettings.class</property>
> </extension>
> {code}
> What do you think ? Is that a good API ?
--
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
12 years, 7 months
[JBoss JIRA] (ARQGRA-308) Should throw exception if page fragment not instantiable
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-308?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-308:
------------------------------
Fix Version/s: 2.0.0.Beta1
> 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
> 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
12 years, 7 months