FetchDeploy extends MetadataAPIBase { @Override public List<ProcessDeploymentQueue> execute(String[] params) { try { CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String fetchNum = commandLine.getOptionValue("fetch-num"); LOGGER.info("fetch-num is " + fetchNum); return fetchDeployDAO.fetchDeploy(Integer.parseInt(fetchNum)); } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } FetchDeploy(); @Override List<ProcessDeploymentQueue> execute(String[] params);  }
@Ignore @Test public void testExecute() throws Exception { FetchDeploy fetchDeploy = new FetchDeploy(); String[] param = new String[]{"-num", "1"}; List<ProcessDeploymentQueue> processDeploymentQueues = fetchDeploy.execute(param); LOGGER.info(processDeploymentQueues); }