@Test public void createOkMessage() { ServiceResponse response = ServiceResponseFactory.createOkResponse(message, details); assertEquals(ServiceExecutionStatus.OK, response.getStatus()); assertEquals(message, response.getMessage()); assertEquals(details, response.getDetails()); }
public static ServiceResponse createOkResponse(String mainMessage, String details) { ServiceResponse response = new ServiceResponse(); response.setStatus(ServiceExecutionStatus.OK); response.setMessage(mainMessage); response.setDetails(details); return response; }
ServiceResponseFactory { public static ServiceResponse createOkResponse(String mainMessage, String details) { ServiceResponse response = new ServiceResponse(); response.setStatus(ServiceExecutionStatus.OK); response.setMessage(mainMessage); response.setDetails(details); return response; } }
ServiceResponseFactory { public static ServiceResponse createOkResponse(String mainMessage, String details) { ServiceResponse response = new ServiceResponse(); response.setStatus(ServiceExecutionStatus.OK); response.setMessage(mainMessage); response.setDetails(details); return response; } private  ServiceResponseFactory(); }
ServiceResponseFactory { public static ServiceResponse createOkResponse(String mainMessage, String details) { ServiceResponse response = new ServiceResponse(); response.setStatus(ServiceExecutionStatus.OK); response.setMessage(mainMessage); response.setDetails(details); return response; } private  ServiceResponseFactory(); static ServiceResponse createErrorResponse(String message, String details); static ServiceResponse createOkResponse(String mainMessage, String details); }
ServiceResponseFactory { public static ServiceResponse createOkResponse(String mainMessage, String details) { ServiceResponse response = new ServiceResponse(); response.setStatus(ServiceExecutionStatus.OK); response.setMessage(mainMessage); response.setDetails(details); return response; } private  ServiceResponseFactory(); static ServiceResponse createErrorResponse(String message, String details); static ServiceResponse createOkResponse(String mainMessage, String details);  }