ScriptServiceUtil { public static Script scriptDescriptionToScript(ScriptDescription sd) { Script ret = new Script(); ret.setComments(sd.getComments()); ret.setCreated(sd.getCreated()); ret.setCreator(sd.getCreator()); ret.setId(sd.getId()); ret.setModified(sd.getModified()); ret.setName(sd.getName()); ret.setProductName(sd.getProductName()); ret.setRuntime(sd.getRuntime()); 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 testScriptDescriptionToScript_1() throws Exception { ScriptDescription sd = new ScriptDescription(); sd.setProductName(""); sd.setName(""); sd.setCreated(new Date()); sd.setId(new Integer(1)); sd.setRuntime(1); sd.setModified(new Date()); sd.setComments(""); sd.setCreator(""); Script result = ScriptServiceUtil.scriptDescriptionToScript(sd); assertNotNull(result); }