Search in sources :

Example 1 with DatasetImporterForSzoboszlai

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

the class DatasetImporterFactoryImplIT method createSzoboszlai.

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

Aggregations

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