@Test public void testNullBuildPropertyStream() throws Exception { List<InputStream> testResourceStreams = new LinkedList<>(); testResourceStreams.add(null); doReturn(testResourceStreams).when(mockResourceRetriever).getResources(any(), anyString()); List<BuildProperties> result = buildPropertiesReader.getAllBuildProperties(); Assert.assertEquals(result.size(), 0); }
public List<BuildProperties> getAllBuildProperties() { readAllBuildProperties(); return allBuildProperties; }
BuildPropertiesReader { public List<BuildProperties> getAllBuildProperties() { readAllBuildProperties(); return allBuildProperties; } }
BuildPropertiesReader { public List<BuildProperties> getAllBuildProperties() { readAllBuildProperties(); return allBuildProperties; } BuildPropertiesReader(String buildPropertiesFile); }
BuildPropertiesReader { public List<BuildProperties> getAllBuildProperties() { readAllBuildProperties(); return allBuildProperties; } BuildPropertiesReader(String buildPropertiesFile); BuildProperties getFirstServiceBuildProperties(); List<BuildProperties> getNonServiceBuildProperties(); List<BuildProperties> getAllBuildProperties(); void setResourceRetriever(ResourceRetriever resourcesRetriever); }
BuildPropertiesReader { public List<BuildProperties> getAllBuildProperties() { readAllBuildProperties(); return allBuildProperties; } BuildPropertiesReader(String buildPropertiesFile); BuildProperties getFirstServiceBuildProperties(); List<BuildProperties> getNonServiceBuildProperties(); List<BuildProperties> getAllBuildProperties(); void setResourceRetriever(ResourceRetriever resourcesRetriever);  }