@Test(dataProvider = "ServicePropertiesCountProvider") public void getNonServiceBuildProperties(final int SERVICE_PROPERTIES_COUNT) throws Exception { final int NON_SERVICE_PROPERTIES_COUNT = 10; generateResourceContents(SERVICE_PROPERTIES_COUNT, NON_SERVICE_PROPERTIES_COUNT); List<BuildProperties> result = buildPropertiesReader.getNonServiceBuildProperties(); Assert.assertEquals(result.size(), NON_SERVICE_PROPERTIES_COUNT); assertAllPropertiesValid(result); }
public List<BuildProperties> getNonServiceBuildProperties() { readAllBuildProperties(); List<BuildProperties> nonServiceProperties = new LinkedList<>(); for(BuildProperties buildProperties : allBuildProperties) { if(!buildProperties.isService()) { nonServiceProperties.add(buildProperties); } } return nonServiceProperties; }
BuildPropertiesReader { public List<BuildProperties> getNonServiceBuildProperties() { readAllBuildProperties(); List<BuildProperties> nonServiceProperties = new LinkedList<>(); for(BuildProperties buildProperties : allBuildProperties) { if(!buildProperties.isService()) { nonServiceProperties.add(buildProperties); } } return nonServiceProperties; } }
BuildPropertiesReader { public List<BuildProperties> getNonServiceBuildProperties() { readAllBuildProperties(); List<BuildProperties> nonServiceProperties = new LinkedList<>(); for(BuildProperties buildProperties : allBuildProperties) { if(!buildProperties.isService()) { nonServiceProperties.add(buildProperties); } } return nonServiceProperties; } BuildPropertiesReader(String buildPropertiesFile); }
BuildPropertiesReader { public List<BuildProperties> getNonServiceBuildProperties() { readAllBuildProperties(); List<BuildProperties> nonServiceProperties = new LinkedList<>(); for(BuildProperties buildProperties : allBuildProperties) { if(!buildProperties.isService()) { nonServiceProperties.add(buildProperties); } } return nonServiceProperties; } BuildPropertiesReader(String buildPropertiesFile); BuildProperties getFirstServiceBuildProperties(); List<BuildProperties> getNonServiceBuildProperties(); List<BuildProperties> getAllBuildProperties(); void setResourceRetriever(ResourceRetriever resourcesRetriever); }
BuildPropertiesReader { public List<BuildProperties> getNonServiceBuildProperties() { readAllBuildProperties(); List<BuildProperties> nonServiceProperties = new LinkedList<>(); for(BuildProperties buildProperties : allBuildProperties) { if(!buildProperties.isService()) { nonServiceProperties.add(buildProperties); } } return nonServiceProperties; } BuildPropertiesReader(String buildPropertiesFile); BuildProperties getFirstServiceBuildProperties(); List<BuildProperties> getNonServiceBuildProperties(); List<BuildProperties> getAllBuildProperties(); void setResourceRetriever(ResourceRetriever resourcesRetriever);  }