ScriptServiceUtil { public static ExternalScript TOToExternalScript(ExternalScriptTO script) { ExternalScript ret = new ExternalScript(); ret.setId(script.getId()); if (script.getId() != 0) { ret.setModified(script.getModified()); ret.setCreated(script.getCreated()); } ret.setCreator(script.getCreator() != null ? script.getCreator() : ""); ret.setName(script.getName()); ret.setProductName(script.getProductName()); ret.setScript(script.getScript()); 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 testTOToExternalScript_1() throws Exception { ExternalScriptTO script = new ExternalScriptTO(); script.setCreator(""); script.setName(""); script.setId(0); script.setProductName(""); script.setScript(""); ExternalScript result = ScriptServiceUtil.TOToExternalScript(script); assertNotNull(result); }