ScriptServiceUtil { public static ScriptTO scriptToTransferObject(Script script) { ScriptTO ret = new ScriptTO(); ret.setComments(script.getComments()); ret.setCreated(script.getCreated()); ret.setCreator(script.getCreator()); ret.setId(script.getId()); ret.setModified(script.getModified()); ret.setName(script.getName()); ret.setProductName(script.getProductName()); ret.setRuntime(script.getRuntime()); ret.setSteps(scriptStepsToTransferobjectList(script.getScriptSteps())); return ret; } private  ScriptServiceUtil(); static ScriptTO scriptToTransferObject(Script script); static List<ScriptStepTO> scriptStepsToTransferobjectList(List<ScriptStep> steps); static Script transferObjectToScript(ScriptTO to); static ScriptStepTO scriptStepToTransferObject(ScriptStep step); static ScriptStepTO copy(ScriptStepTO step); static ScriptStep transferObjectToScriptStep(ScriptStepTO to); static StepDataTO requestDataToTransferObject(RequestData data); static StepDataTO copyStepDataTO(StepDataTO data); static RequestData transferObjectToRequestData(StepDataTO to); static ScriptDescription scriptToScriptDescription(Script script); static Script scriptDescriptionToScript(ScriptDescription sd); static ExternalScriptTO externalScriptToTO(ExternalScript script); static ExternalScript TOToExternalScript(ExternalScriptTO script);  }
@Test public void testScriptToTransferObject_1() throws Exception { Script script = new Script(); script.setSteps(new LinkedList()); script.setRuntime(1); script.setName(""); script.setProductName(""); script.setComments(""); ScriptTO result = ScriptServiceUtil.scriptToTransferObject(script); assertNotNull(result); }