Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-912

Setup a declarative REST testing extension

    Details

      Description

      Convert the RESTEasy extension prototype Aslak created under the Arquillian Showcase into a standalone module.

      Tasks:

        Gliffy Diagrams

          Activity

          Hide
          dan.j.allen Dan Allen added a comment -

          Here's an example test scenario this extension can help simplify and make portable

          http://blog.codecentric.de/en/2012/05/writing-lightweight-rest-integration-tests-with-the-jersey-test-framework/

          Show
          dan.j.allen Dan Allen added a comment - Here's an example test scenario this extension can help simplify and make portable http://blog.codecentric.de/en/2012/05/writing-lightweight-rest-integration-tests-with-the-jersey-test-framework/
          Hide
          aslak Aslak Knutsen added a comment -

          Done -> Create a JIRA component to track issues and releases
          Component: "Extension - REST" Version: rest_1.0.0.next

          Done -> Create a new repository: arquillian-extension-rest
          https://github.com/arquillian/arquillian-extension-rest

          Done -> Add the repository to the enlistments on http://ohloh.net/p/arquillian

          Show
          aslak Aslak Knutsen added a comment - Done -> Create a JIRA component to track issues and releases Component: "Extension - REST" Version: rest_1.0.0.next Done -> Create a new repository: arquillian-extension-rest https://github.com/arquillian/arquillian-extension-rest Done -> Add the repository to the enlistments on http://ohloh.net/p/arquillian
          Hide
          dan.j.allen Dan Allen added a comment -

          There's a related article on testing REST services in a Spring project. I think both of these articles provide some nice raw material for showcase examples.

          http://www.javacodegeeks.com/2012/05/maven-integration-testing-and-spring.html

          Show
          dan.j.allen Dan Allen added a comment - There's a related article on testing REST services in a Spring project. I think both of these articles provide some nice raw material for showcase examples. http://www.javacodegeeks.com/2012/05/maven-integration-testing-and-spring.html
          Hide
          dan.j.allen Dan Allen added a comment -

          Btw, here's a link to the JAX-RS 2.0 specification, which defines the Client API

          http://jcp.org/en/jsr/detail?id=339

          Click on the last draft.

          Show
          dan.j.allen Dan Allen added a comment - Btw, here's a link to the JAX-RS 2.0 specification, which defines the Client API http://jcp.org/en/jsr/detail?id=339 Click on the last draft.
          Hide
          rektide Matthew Fowle added a comment -

          It would be nice to mix the path based retrieval of the current extension with a mechanism for getting a more raw form of data out of the ClientResponse.

          At present this extension seems only useful if there's an serializable entity returned, where-as I have a need to test the JSON response in a more fine-grained way, pre-deserialization, and there seems to be no way to get that raw response body with this otherwise completely-fantastic extension.

          Show
          rektide Matthew Fowle added a comment - It would be nice to mix the path based retrieval of the current extension with a mechanism for getting a more raw form of data out of the ClientResponse. At present this extension seems only useful if there's an serializable entity returned, where-as I have a need to test the JSON response in a more fine-grained way, pre-deserialization, and there seems to be no way to get that raw response body with this otherwise completely-fantastic extension.
          Hide
          blabno Bernard Labno added a comment -

          Invoke multiple rest methods during single test.
          Inject either resteasy client proxy or low level artifacts.

          Show
          blabno Bernard Labno added a comment - Invoke multiple rest methods during single test. Inject either resteasy client proxy or low level artifacts.

            People

            • Assignee:
              aslak Aslak Knutsen
              Reporter:
              dan.j.allen Dan Allen
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development