Search in sources :

Example 1 with StudyImporterForWood

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"));
}
Also used : StudyImporterForWood(org.eol.globi.data.StudyImporterForWood) BaseStudyImporter(org.eol.globi.data.BaseStudyImporter) StudyImporter(org.eol.globi.data.StudyImporter) Test(org.junit.Test)

Aggregations

BaseStudyImporter (org.eol.globi.data.BaseStudyImporter)1 StudyImporter (org.eol.globi.data.StudyImporter)1 StudyImporterForWood (org.eol.globi.data.StudyImporterForWood)1 Test (org.junit.Test)1