GetGeneralConfig extends MetadataAPIBase { public List<GeneralConfig> byConigGroupOnly(String configGroup, Integer required) { GeneralConfig generalConfig = new GeneralConfig(); List<GeneralConfig> generalConfigs = new ArrayList<GeneralConfig>(); try { Integer newRequired = required; if (required == null) { newRequired = 2; } generalConfigs = generalConfigDAO.getGeneralConfig(configGroup, newRequired); LOGGER.info("All records listed with config group" + configGroup); LOGGER.info("generalConfigs" + generalConfigs); } catch (Exception e) { generalConfig.setRequired(2); generalConfigs.add(generalConfig); LOGGER.error("Listing of Records Failed",e); } return generalConfigs; } 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 testByConigGroupOnly() throws Exception { GetGeneralConfig getGeneralConfig = new GetGeneralConfig(); List<GeneralConfig> generalConfigList = getGeneralConfig.byConigGroupOnly("1", 1); for (GeneralConfig generalConfig : generalConfigList) { LOGGER.debug("I got the list value is " + generalConfig); } }