[JBoss JIRA] (ARQ-1240) Warp JSF: allow to execute arbitrary operations in JSF phases
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1240?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1240:
----------------------------
Labels: hack-idea (was: )
> Warp JSF: allow to execute arbitrary operations in JSF phases
> -------------------------------------------------------------
>
> Key: ARQ-1240
> URL: https://issues.jboss.org/browse/ARQ-1240
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Affects Versions: warp_1.0.0.Alpha2
> Reporter: Lukáš Fryč
> Labels: hack-idea
> Fix For: warp_1.0.0.Beta1
>
>
> We are able to execute verification with help of {{PhaseListener}}.
> However we should be able to invoke JSF logic like:
> * conversion
> * validation
> * action invocation
> To achieve that, one can place auxilliary JSF component into built JSF tree and if there will be any actions defined, trigger action.
> API proposal:
> {code:java}
> @DuringConversion
> public void throwConversionError() {};
> @DuringValidation
> public void throwValidationError() {};
> @DuringApplicationInvocation
> public void manipulateWithModel() {};
> {code}
--
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
11 years, 10 months
[JBoss JIRA] (ARQ-1238) Warp: declarative approach - @Inspect and @Observe
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1238?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1238:
----------------------------
Priority: Optional (was: Major)
> Warp: declarative approach - @Inspect and @Observe
> --------------------------------------------------
>
> Key: ARQ-1238
> URL: https://issues.jboss.org/browse/ARQ-1238
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Affects Versions: warp_1.0.0.Alpha2
> Reporter: Lukáš Fryč
> Priority: Optional
> Fix For: warp_1.0.0.Beta1
>
>
> {code:java}
> /**
> * Filters can be specified by annotation - then they will be applied in any
> * Warp execution where no other filter was specified.
> */
> @Observe(RequestToObserve.class)
> public void testFilterSpecifiedByAnnotation() {
> Warp
> .execute(clientAction)
> .verify(serverAssertion);
> }
> /**
> * Assertions can be specified by annotation - all specified assertions
> * will be used for all requests.
> */
> @Inspect({Inspection1.class, Inspection2.class})
> public void testSpecifyAssertionByAnnotation() {
> clientAction.action();
> }
> {code}https://github.com/arquillian/arquillian-extension-warp/blob/master/api/src/test/java/org/jboss/arquillian/warp/TestExecutionAPI.java#L150
--
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
11 years, 10 months