-
15. Re: Warp extension for testing RESTful services
dan.j.allen Dec 5, 2012 4:22 PM (in response to jmnarloch)That's a good question Jakub, one that we hadn't yet explored.
For POST and PUT, I would imagine that it would rely on some sort of data provider (sort of like Arquillian Ape) and verify that the endpoint consumes them properly.
Obviously, taking a declarative approach is going to be very constrained. That's why I think it works best for boilerplate, data-driven tests that make you feel like you are typing unnecessary code. It's a bit like FitNesse or Spock's data tables for testing various values. (There's also the use case of creating a very simple smoke test for a REST service).
-
16. Re: Warp extension for testing RESTful services
jmnarloch Dec 6, 2012 11:24 AM (in response to dan.j.allen)For POST and PUT, I would imagine that it would rely on some sort of data provider (sort of like Arquillian Ape) and verify that the endpoint consumes them properly.
Obviously, taking a declarative approach is going to be very constrained. That's why I think it works best for boilerplate, data-driven tests that make you feel like you are typing unnecessary code. It's a bit like FitNesse or Spock's data tables for testing various values. (There's also the use case of creating a very simple smoke test for a REST service).
I really like this idea. Reducing the pain of setting up the test.
We could have REST extension kept seperatly from the Warp and with some smart extendable design we could integrate them together. From the client side it does not make much difference, since the only thing that needs to be configured is the service URL address. And with alternative Warp syntax (@Verify) we could have a declarative aproach here as well. I think that this have some great potential.
-
17. Re: Warp extension for testing RESTful services
dan.j.allen Dec 14, 2012 4:55 PM (in response to jmnarloch)Jakub, you nailed it!
-
18. Re: Warp extension for testing RESTful services
jmnarloch Feb 20, 2013 6:53 PM (in response to jmnarloch)One major update on this topic.
I had finally manage to finish the Jersey proof of concept. https://github.com/jmnarloch/arquillian-extension-warp-rest
Now moving to CXF.
-
19. Re: Warp extension for testing RESTful services
lfryc Feb 21, 2013 12:49 PM (in response to jmnarloch)Great job, Jakub!
What about proposing REST hack-idea for JHackFest [1] this weekend?
We could connect Brno with you through hangout!
-
20. Re: Warp extension for testing RESTful services
jmnarloch Feb 21, 2013 1:57 PM (in response to lfryc)Lukáš Fryč wrote:
What about proposing REST hack-idea for JHackFest [1] this weekend?
We could connect Brno with you through hangout!
Cool!
I can definetly be online.
-
21. Re: Warp extension for testing RESTful services
jmnarloch Feb 28, 2013 3:22 PM (in response to jmnarloch)Finally!
I have prototyped the third and final CXF implementation and by ocassion I have found a bug (https://issues.jboss.org/browse/ARQ-1320) in Warp that at the moment doesn't allow to use the CXF together with Warp, but it can be quickly fixed.
Now. I will wrapp up the code, prepare the tests and we can be ready with the Alpha 1 pretty soon.
-
22. Re: Warp extension for testing RESTful services
jmnarloch Mar 6, 2013 3:36 AM (in response to jmnarloch)By now all the integration test in the Warp REST extension are passing. At the moment I'm writting unit tests for the impl modules, likely it will be done within next couple days. Question is where do we move the code? Into the arquillian-extension-warp? Or do we create completly new one and we make Warp REST extension a first class extension with it's own release cycle?
-
23. Re: Warp extension for testing RESTful services
lfryc Mar 6, 2013 9:30 AM (in response to jmnarloch)Jakub, we could simply move REST extension here
https://github.com/arquillian/arquillian-extension-warp/tree/master/extension
that was the original intention.
however the another live idea is creating framework-specific Arquillian extensions, e.g.:
- Java EE + JSF
- Java EE + REST
- Spring MVC
---
+1 to moving REST to Warp, since the standard Java EE technologies belongs now to core modules (even though the REST extension is REST-provider specific).
-
24. Re: Warp extension for testing RESTful services
jmnarloch Mar 6, 2013 5:15 PM (in response to lfryc)We have finnally a pull request opened for this issue
-
25. Re: Warp extension for testing RESTful services
aslak Apr 19, 2013 5:20 AM (in response to jmnarloch)We could put this in the arquillian-extension-rest. What's there now is just an early prototype with very little movement.
We could 'move' the master branch to a branch, replace master with warp-rest, then retro fit the old master branch if needed.
-
26. Re: Warp extension for testing RESTful services
lfryc Apr 19, 2013 9:42 AM (in response to aslak)+1 agree
Aslak Knutsen wrote:
We could put this in the arquillian-extension-rest. What's there now is just an early prototype with very little movement.
We could 'move' the master branch to a branch, replace master with warp-rest, then retro fit the old master branch if needed.