Closed PawelAdamski closed 6 years ago
HttpClientMock should follow Apache Http Client behavior so with following setup:
HttpClientMock httpClientMock = new HttpClientMock("http://localhost:8080"); httpClientMock.onPut("/save").doReturnStatus(204);
calling httpClientMock.execute(httpGet("http://localhost:8080/save")).getEntity() should return null.
httpClientMock.execute(httpGet("http://localhost:8080/save")).getEntity()
Fixed.
HttpClientMock should follow Apache Http Client behavior so with following setup:
calling
httpClientMock.execute(httpGet("http://localhost:8080/save")).getEntity()
should return null.