@Test public void testPrepareResponse_success() { String expectedRequestId = "146-request-id"; String expectedTid = "112-tid"; RequestContext requestContext = new RequestContext(); requestContext.setRequestId(expectedRequestId); Request request = new Request.RequestBuilder(MethodType.GET, "url") .context(requestContext) .build(); Response response = new Response(200, "{}", expectedTid); Entity entity = new Entity() {}; serviceBase.prepareResponse(request, response, entity); Assert.assertEquals(entity.getIntuit_tid(), expectedTid); Assert.assertEquals(entity.getRequestId(), expectedRequestId); }
public void prepareResponse(Request request, Response response, Entity entity) { entity.setIntuit_tid(response.getIntuit_tid()); entity.setRequestId(request.getContext().getRequestId()); }
ServiceBase { public void prepareResponse(Request request, Response response, Entity entity) { entity.setIntuit_tid(response.getIntuit_tid()); entity.setRequestId(request.getContext().getRequestId()); } }
ServiceBase { public void prepareResponse(Request request, Response response, Entity entity) { entity.setIntuit_tid(response.getIntuit_tid()); entity.setRequestId(request.getContext().getRequestId()); }  }
ServiceBase { public void prepareResponse(Request request, Response response, Entity entity) { entity.setIntuit_tid(response.getIntuit_tid()); entity.setRequestId(request.getContext().getRequestId()); }  Response sendRequest(Request serviceRequest); void prepareResponse(Request request, Response response, Entity entity); }
ServiceBase { public void prepareResponse(Request request, Response response, Entity entity) { entity.setIntuit_tid(response.getIntuit_tid()); entity.setRequestId(request.getContext().getRequestId()); }  Response sendRequest(Request serviceRequest); void prepareResponse(Request request, Response response, Entity entity);  }