Intermediate extends MetadataAPIBase { @Override public IntermediateInfo execute(String[] params) { try { IntermediateInfo intermediateInfo = new IntermediateInfo(); CommandLine commandLine = getCommandLine(params, PARAMS_STRUCTURE); String uuid = commandLine.getOptionValue("uuid"); LOGGER.debug("UUID is " + uuid); String key = commandLine.getOptionValue("key"); LOGGER.debug("key is " + key); String value = commandLine.getOptionValue("value"); LOGGER.debug("value is " + value); intermediateInfo.setUuid(uuid); intermediateInfo.setKey(key); intermediateInfo.setValue(value); com.wipro.ats.bdre.md.dao.jpa.Intermediate intermediate = new com.wipro.ats.bdre.md.dao.jpa.Intermediate(); IntermediateId intermediateId = new IntermediateId(); intermediateId.setInterKey(key); intermediateId.setUuid(uuid); intermediate.setId(intermediateId); intermediate.setInterValue(value); intermediateDAO.insert(intermediate); return intermediateInfo; } catch (Exception e) { LOGGER.error("Error occurred", e); throw new MetadataException(e); } } Intermediate(); @Override IntermediateInfo execute(String[] params); void keyValue(List<IntermediateInfo> intermediateInfos);  }
@Ignore @Test public void testExecute() throws Exception { String[] args = {"--uuid", "1vghdtyere5", "--key", "jvsds34765fr", "--value", "jauxa78"}; com.wipro.ats.bdre.md.api.Intermediate intermediate = new com.wipro.ats.bdre.md.api.Intermediate(); intermediate.execute(args); LOGGER.debug("executed!"); }