GetGeneralConfig extends MetadataAPIBase { public GeneralConfig byConigGroupAndKey(String configGroup, String key) { GeneralConfig generalConfig = new GeneralConfig(); try { generalConfig = generalConfigDAO.getGenConfigProperty(configGroup, key); LOGGER.info("Record with config group:" + configGroup + " and key:" + key + "selected from General Config " + generalConfig); } catch (Exception e) { generalConfig.setRequired(2); LOGGER.error("Object with specified config_group and key not found",e); } return generalConfig; } GetGeneralConfig(); List<GeneralConfig> byConigGroupOnly(String configGroup, Integer required); List<GeneralConfig> listGeneralConfig(String configGroup); List<GeneralConfig> byLikeConfigGroup(String description, Integer required); GeneralConfig byConigGroupAndKey(String configGroup, String key); @Override Object execute(String[] params);  }
@Ignore @Test public void testByConigGroupAndKey() throws Exception { GetGeneralConfig getGeneralConfig = new GetGeneralConfig(); GeneralConfig generalConfig = getGeneralConfig.byConigGroupAndKey("1", "credential"); LOGGER.debug("I got the property value is " + generalConfig); }