Search in sources :

Example 1 with StudyImporterForPlanque

use of org.eol.globi.data.StudyImporterForPlanque in project eol-globi-data by jhpoelen.

the class GitHubImporterFactoryIT method createPlanque.

@Test
public void createPlanque() throws StudyImporterException, DatasetFinderException {
    final DatasetFinderGitHubRemote datasetFinderGitHubRemote = new DatasetFinderGitHubRemote();
    StudyImporter importer = importerFor(datasetFinderGitHubRemote, "globalbioticinteractions/planque2014");
    assertThat(importer, is(notNullValue()));
    assertThat(importer, is(instanceOf(StudyImporterForPlanque.class)));
    StudyImporterForPlanque importerz = (StudyImporterForPlanque) importer;
    assertThat(importerz.getSourceCitation(), containsString("Planque"));
    assertThat(importerz.getLinks(), is(notNullValue()));
    assertThat(importerz.getReferences(), is(notNullValue()));
    assertThat(importerz.getReferencesForLinks(), is(notNullValue()));
}
Also used : StudyImporterForPlanque(org.eol.globi.data.StudyImporterForPlanque) 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 StudyImporterForPlanque (org.eol.globi.data.StudyImporterForPlanque)1 Test (org.junit.Test)1