-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARQ-1204 #7
ARQ-1204 #7
Conversation
An Innovative Testing Platform for the JVM » arquillian-extension-warp #22 FAILURE |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #23 FAILURE |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #24 FAILURE |
Fantastic job, Jakub! Few questions/comments:
|
Yeah. That was the first and the last time I was doing rebase through InteliJ ;)
I wanted to fully seperate the implementation from the interface/API so I "inject" the implementation at runtime. Of course I could seperate that completly from the WarpClientActionBuilder, but I thought that it would be nice to have one extension class to which all API classes can delegate.
It does. :)
Sure. Beside that I would like to introduce HttpHeaderFilterBuilder and implement not() function, that could be used as fallows: request().url().contains("flavice.ico").not(); |
We do that with The only we could do would be use Service pattern, something like this: https://github.com/lfryc/arquillian-extension-warp/blob/ARQ-937/spi/src/main/java/org/jboss/arquillian/warp/spi/LifecycleManagerStore.java#L134
Cool - just have in mind that it could be better readable: |
JAX-RS give me the inspiration for creating the runtime delegate: So overall this is similar way of achieving the same goal. I just prefer to have single extension point rather to separately set all the classes: for example Warp and separately HttpFilters and so on.
Consider it done. |
Ok, let's go ahead and make this happen! |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #25 SUCCESS |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #26 SUCCESS |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #27 SUCCESS |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #28 SUCCESS |
Ok. I'm done. First test running builder API got a green bar ;)
|
Fantastic, Ike loves green bars! :-) |
public void testFilterBuilderUri() { | ||
Warp | ||
.execute(clientAction) | ||
.filter(request().uri().endsWith(".jsf").build()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build()
method is not necessary as I can see from BasicWarpTest
m right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A, right I made the example before adding the overloaded filter() method.
Could you please create one unit test for request builder and one for URI matcher? It looks awesome, this is huge addition and we will soon stretch its muscles in REST extension! Looking forward for that! :-) |
An Innovative Testing Platform for the JVM » arquillian-extension-warp #29 SUCCESS |
Thanks for this fantastic feature, Jakub! |
I could have something that might interest you :-)