use of org.eol.globi.data.DatasetImporterForWood in project eol-globi-data by jhpoelen.
the class DatasetImporterFactoryImplIT method createWood.
@Test
public void createWood() throws StudyImporterException, DatasetRegistryException, IOException {
final DatasetRegistryGitHubRemote datasetFinderGitHubRemote = new DatasetRegistryGitHubRemote(inStream -> inStream);
DatasetImporter importer = importerFor(datasetFinderGitHubRemote, "globalbioticinteractions/wood2015");
assertThat(importer, is(notNullValue()));
assertThat(importer, is(instanceOf(DatasetImporterForWood.class)));
DatasetImporterForWood importerz = (DatasetImporterForWood) importer;
assertThat(importerz.getSourceCitation(), containsString("Wood"));
assertThat(importerz.getDataset().retrieve(URI.create("links")).toString(), is(notNullValue()));
}
Aggregations