Search in sources :

Example 1 with DatasetImporterForPlanque

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

the class DatasetImporterFactoryImplIT method createPlanque.

@Test
public void createPlanque() throws StudyImporterException, DatasetRegistryException, IOException {
    final DatasetRegistryGitHubRemote datasetFinderGitHubRemote = new DatasetRegistryGitHubRemote(inStream -> inStream);
    DatasetImporter importer = importerFor(datasetFinderGitHubRemote, "globalbioticinteractions/planque2014");
    assertThat(importer, is(notNullValue()));
    assertThat(importer, is(instanceOf(DatasetImporterForPlanque.class)));
    DatasetImporterForPlanque importerz = (DatasetImporterForPlanque) importer;
    assertThat(importerz.getSourceCitation(), containsString("Planque"));
}
Also used : DatasetRegistryGitHubRemote(org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote) BaseDatasetImporter(org.eol.globi.data.BaseDatasetImporter) DatasetImporter(org.eol.globi.data.DatasetImporter) DatasetImporterForPlanque(org.eol.globi.data.DatasetImporterForPlanque) Test(org.junit.Test)

Aggregations

BaseDatasetImporter (org.eol.globi.data.BaseDatasetImporter)1 DatasetImporter (org.eol.globi.data.DatasetImporter)1 DatasetImporterForPlanque (org.eol.globi.data.DatasetImporterForPlanque)1 DatasetRegistryGitHubRemote (org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote)1 Test (org.junit.Test)1