use of org.eol.globi.data.DatasetImporterForCoetzer in project eol-globi-data by jhpoelen.
the class DatasetImporterFactoryImplIT method createAfrotropicalBees.
@Test
public void createAfrotropicalBees() throws StudyImporterException, DatasetRegistryException, IOException {
final DatasetRegistryGitHubRemote datasetFinderGitHubRemote = new DatasetRegistryGitHubRemote(inStream -> inStream);
String repo = "globalbioticinteractions/Catalogue-of-Afrotropical-Bees";
DatasetImporter importer = importerFor(datasetFinderGitHubRemote, repo);
assertThat(importer, is(notNullValue()));
assertThat(importer, is(instanceOf(DatasetImporterForCoetzer.class)));
assertThat(((DatasetImporterForCoetzer) importer).getDataset(), is(notNullValue()));
assertThat(((DatasetImporterForCoetzer) importer).getDataset().retrieve(URI.create("archive")), is(notNullValue()));
}
Aggregations