@Test public void testCloneResponseShouldReturnResponseBody() { response.setBody("body"); WilmaHttpResponse actual = underTest.cloneResponse(response); assertEquals(actual.getBody(), response.getBody()); }
public WilmaHttpResponse cloneResponse(final WilmaHttpResponse response) { WilmaHttpResponse result = new WilmaHttpResponse(response.isVolatile()); result.setStatusCode(response.getStatusCode()); result.setContentType(response.getContentType()); result.setBody(response.getBody()); copyHeaders(response, result); result.setWilmaMessageId(response.getWilmaMessageId()); return result; }
WilmaHttpResponseCloner { public WilmaHttpResponse cloneResponse(final WilmaHttpResponse response) { WilmaHttpResponse result = new WilmaHttpResponse(response.isVolatile()); result.setStatusCode(response.getStatusCode()); result.setContentType(response.getContentType()); result.setBody(response.getBody()); copyHeaders(response, result); result.setWilmaMessageId(response.getWilmaMessageId()); return result; } }
WilmaHttpResponseCloner { public WilmaHttpResponse cloneResponse(final WilmaHttpResponse response) { WilmaHttpResponse result = new WilmaHttpResponse(response.isVolatile()); result.setStatusCode(response.getStatusCode()); result.setContentType(response.getContentType()); result.setBody(response.getBody()); copyHeaders(response, result); result.setWilmaMessageId(response.getWilmaMessageId()); return result; }  }
WilmaHttpResponseCloner { public WilmaHttpResponse cloneResponse(final WilmaHttpResponse response) { WilmaHttpResponse result = new WilmaHttpResponse(response.isVolatile()); result.setStatusCode(response.getStatusCode()); result.setContentType(response.getContentType()); result.setBody(response.getBody()); copyHeaders(response, result); result.setWilmaMessageId(response.getWilmaMessageId()); return result; }  WilmaHttpResponse cloneResponse(final WilmaHttpResponse response); }
WilmaHttpResponseCloner { public WilmaHttpResponse cloneResponse(final WilmaHttpResponse response) { WilmaHttpResponse result = new WilmaHttpResponse(response.isVolatile()); result.setStatusCode(response.getStatusCode()); result.setContentType(response.getContentType()); result.setBody(response.getBody()); copyHeaders(response, result); result.setWilmaMessageId(response.getWilmaMessageId()); return result; }  WilmaHttpResponse cloneResponse(final WilmaHttpResponse response);  }