Using wiremock, can I return a body that is dependent on the post request

后端 未结 6 849
盖世英雄少女心
盖世英雄少女心 2021-02-12 20:10

I am trying to test an openid provider class. The openid consumer class is making an http request. I am mocking the response to this request using wiremock. I am trying to mock

6条回答
  •  醉酒成梦
    2021-02-12 20:41

    I've investigated this a fair bit and the answer is no (as of today, anyway).

    You need to set up a specific (static) response for each request that requires a unique response.

提交回复
热议问题