HaltStep extends MetadataAPIBase { @Override public HaltStepInfo execute(String[] params) { try { HaltStepInfo haltStepInfo = new HaltStepInfo(); CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String subPids = commandLine.getOptionValue("sub-process-id"); LOGGER.debug("subPid is " + subPids); String[] subPidList = subPids.split(","); for (String subPid : subPidList) { haltStepInfo.setSubProcessId(Integer.parseInt(subPid)); stepDAO.haltStep(haltStepInfo.getSubProcessId()); } return haltStepInfo; } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } HaltStep(); @Override HaltStepInfo execute(String[] params);  }
@Ignore @Test public void testExecute() throws Exception { String[] args = {"--sub-process-id", "96"}; HaltStep bs = new HaltStep(); bs.execute(args); System.out.println("executed!"); }