GetETLDriver extends MetadataAPIBase { @Override public GetETLDriverInfo execute(String[] params) { try { CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String minBId = commandLine.getOptionValue("min-batch-id"); LOGGER.debug("minimum-batch-id is " + minBId); String maxBId = commandLine.getOptionValue("max-batch-id"); LOGGER.debug("maximum-batch-id is " + maxBId); List<GetETLDriverInfo> getETLDriverInfoList = getETLInfoDAO.getETLInfo(Long.parseLong(minBId), Long.parseLong(maxBId)); LOGGER.info("list of File is " + getETLDriverInfoList.get(0).getFileList()); return getETLDriverInfoList.get(0); } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } GetETLDriver(); @Override GetETLDriverInfo execute(String[] params);  }
@Ignore @Test public void testExecute() throws Exception { String[] args = {"--maxB", "1", "--minB", "3"}; GetETLDriver fs = new GetETLDriver(); fs.execute(args); LOGGER.debug("executed!"); }