[arquillian-issues] [JBoss JIRA] (ARQ-1238) Warp: declarative approach - @Inspect and @Observe

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Dec 12 04:36:17 EST 2012


Lukáš Fryč created ARQ-1238:
-------------------------------

             Summary: 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č


{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



More information about the arquillian-issues mailing list