[
https://issues.jboss.org/browse/ARQ-1204?page=com.atlassian.jira.plugin.s...
]
Jakub Narloch commented on ARQ-1204:
------------------------------------
I have prototyped the API -
https://github.com/jmnarloch/arquillian-extension-warp/tree/ARQ-1204
Besides the builders API proposal I would like to introduce WarpRuntime, so that I could
hook up the concrete builder instance at runtime (I thought that this could be a single
point of extension that is why I would like to move there the RequestExecutor from Warp
class).
@lfryc what do you think?
Builder for Warp filters.
-------------------------
Key: ARQ-1204
URL:
https://issues.jboss.org/browse/ARQ-1204
Project: Arquillian
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Extension - Warp
Affects Versions: warp_1.0.0.Alpha1
Reporter: Jakub Narloch
Assignee: Jakub Narloch
Fix For: warp_1.0.0.Alpha2
Warp could introduce some builder like functionality for creating filters in the test.
Example:
{code}
import static org.jboss.arquillian.warp.filter.HttpFilters.*;
HttpFilterBuilder restFilter = uri(contains("/rest/service"));
Warp.defaultFilter(restFilter);
Warp
.execute(...)
.filter(method(GET).uri(endsWith("/path1")))
.verify(...);
{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