@Test public void testGetLastReleaseDate() throws Exception{ assertNotNull(solrQueryService.getLastReleaseDate()); }
public String getLastReleaseDate(){ String releasedate; Properties properties = new Properties(); try { properties.load(catalogStatsFile.getInputStream()); releasedate = properties.getProperty("releasedate"); } catch (IOException e) { throw new RuntimeException( "Unable to return catolog stats: failed to read catalog.stats.file resource", e); } return releasedate; }
SolrQueryService { public String getLastReleaseDate(){ String releasedate; Properties properties = new Properties(); try { properties.load(catalogStatsFile.getInputStream()); releasedate = properties.getProperty("releasedate"); } catch (IOException e) { throw new RuntimeException( "Unable to return catolog stats: failed to read catalog.stats.file resource", e); } return releasedate; } }
SolrQueryService { public String getLastReleaseDate(){ String releasedate; Properties properties = new Properties(); try { properties.load(catalogStatsFile.getInputStream()); releasedate = properties.getProperty("releasedate"); } catch (IOException e) { throw new RuntimeException( "Unable to return catolog stats: failed to read catalog.stats.file resource", e); } return releasedate; } SolrQueryService(); }
SolrQueryService { public String getLastReleaseDate(){ String releasedate; Properties properties = new Properties(); try { properties.load(catalogStatsFile.getInputStream()); releasedate = properties.getProperty("releasedate"); } catch (IOException e) { throw new RuntimeException( "Unable to return catolog stats: failed to read catalog.stats.file resource", e); } return releasedate; } SolrQueryService(); List<PublishedStudy> getPublishedStudies(); String getLastReleaseDate(); String buildSolrQuery(String releaseDate); List<PublishedStudy> querySolr(String searchString); List<PublishedStudy> processSolrResult(HttpEntity entity); Resource getCatalogStatsFile(); void setCatalogStatsFile(Resource csf); URL getServer(); void setServer(URL server); }
SolrQueryService { public String getLastReleaseDate(){ String releasedate; Properties properties = new Properties(); try { properties.load(catalogStatsFile.getInputStream()); releasedate = properties.getProperty("releasedate"); } catch (IOException e) { throw new RuntimeException( "Unable to return catolog stats: failed to read catalog.stats.file resource", e); } return releasedate; } SolrQueryService(); List<PublishedStudy> getPublishedStudies(); String getLastReleaseDate(); String buildSolrQuery(String releaseDate); List<PublishedStudy> querySolr(String searchString); List<PublishedStudy> processSolrResult(HttpEntity entity); Resource getCatalogStatsFile(); void setCatalogStatsFile(Resource csf); URL getServer(); void setServer(URL server);  }