我已经写了调用REST服务嘲讽REST调用另外一个REST的服务
@RequestMapping(value = { "session" }, method = {RequestMethod.GET)
@ResponseBody
public String sesionGet(HttpServletRequest request, HttpServletResponse httpServletResponse) {
//call rest webservice
PostResponse postRequest = IncomeAccessUtils.postRequest(/*call web esrvice*/);
我需要对代理做一个集成测试,但有时服务器REST代理在其外部Web服务部署在关闭。我可以嘲笑来自web服务调用的响应吗?我正在使用spring-test-mvc和/或rest-assurance框架进行测试。
也许http://wiremock.org/ – 2017-03-01 12:27:49