use of org.eol.globi.data.StudyImporterForWood in project eol-globi-data by jhpoelen.
the class GitHubImporterFactoryIT method createWood.
@Test
public void createWood() throws StudyImporterException, DatasetFinderException {
final DatasetFinderGitHubRemote datasetFinderGitHubRemote = new DatasetFinderGitHubRemote();
StudyImporter importer = importerFor(datasetFinderGitHubRemote, "globalbioticinteractions/wood2015");
assertThat(importer, is(notNullValue()));
assertThat(importer, is(instanceOf(StudyImporterForWood.class)));
StudyImporterForWood importerz = (StudyImporterForWood) importer;
assertThat(importerz.getSourceCitation(), containsString("Wood"));
assertThat(importerz.getDataset().getResourceURI(importerz.getLinksResourceName()).toString(), endsWith(".csv"));
}
Aggregations