Can I override RESTClient default “HttpResponseException” response to >399 Return Codes?

后端 未结 3 1310
面向向阳花
面向向阳花 2021-02-13 15:58

I\'m using the Groovy RESTClient class to do write some (spock) Acceptance tests for Java WebServices I\'ve been authoring.

One frustration I\'ve had is in testing the r

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-13 16:38

    As Tomasz already linked in a comment, here is my little one-liner answer from a similar question.

    client.handler.failure = client.handler.success
    

提交回复
热议问题