GetProcessDependency extends MetadataAPIBase { @Override public List<ProcessDependencyInfo> execute(String[] params) { List<ProcessDependencyInfo> udList; try { CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String pid = commandLine.getOptionValue("process-id"); LOGGER.info("process-id is " + pid); udList = processDependencyDAO.listUD(Integer.parseInt(pid)); LOGGER.info("Details of process is\n" + udList); return udList; } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } GetProcessDependency(); @Override List<ProcessDependencyInfo> execute(String[] params);  }
@Ignore @Test public void testExecute() throws Exception { String[] args = {"-p", "10802"}; GetProcessDependency bs = new GetProcessDependency(); List<ProcessDependencyInfo> processDependencyInfoList = bs.execute(args); for (ProcessDependencyInfo info : processDependencyInfoList) { System.out.println("info.getProcessId()+ \",\" + info.getRowType() = " + info.getProcessId() + "," + info.getRowType()); } LOGGER.debug("executed!"); }