use of org.eol.globi.service.DatasetFinderGitHubArchive in project eol-globi-data by jhpoelen.
the class DatasetFinderWithCacheIT method hafnerTest.
@Test
public void hafnerTest() throws DatasetFinderException, IOException {
DatasetFinder finder = new DatasetFinderWithCache(new DatasetFinderGitHubArchive(), cachePath);
Dataset dataset = DatasetFactory.datasetFor("globalbioticinteractions/hafner", finder);
assertNotNull(dataset.getResource("hafner/gopher_lice_int.csv"));
}
use of org.eol.globi.service.DatasetFinderGitHubArchive in project eol-globi-data by jhpoelen.
the class DatasetFinderWithCacheIT method gitHubTest.
@Test
public void gitHubTest() throws DatasetFinderException {
DatasetFinder finder = new DatasetFinderWithCache(new DatasetFinderGitHubArchive(), cachePath);
Dataset dataset = DatasetFactory.datasetFor("globalbioticinteractions/Catalogue-of-Afrotropical-Bees", finder);
assertThat(dataset.getArchiveURI().toString(), containsString("github.com"));
assertThat(dataset.getResourceURI("globi.json").toString(), startsWith("jar:file:/"));
assertThat(dataset.getCitation(), startsWith("Shan Kothari, Pers. Comm. 2014."));
}
Aggregations