@Test public void throwExceptionOnRetrieve() throws Exception { doThrow(new RuntimeException()).when(mockResourceRetriever).getResources(any(), anyString()); buildPropertiesReader.getAllBuildProperties(); }
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);  }