Search in sources :

Example 1 with DatasetImporterForGoMexSI2

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

the class DatasetImporterFactoryImplIT method createGoMexSI.

@Test
public void createGoMexSI() throws StudyImporterException, DatasetRegistryException {
    final DatasetRegistryGitHubRemote datasetFinderGitHubRemote = new DatasetRegistryGitHubRemote(inStream -> inStream);
    DatasetImporter importer = importerFor(datasetFinderGitHubRemote, "gomexsi/interaction-data");
    assertThat(importer, is(notNullValue()));
    assertThat(importer, is(instanceOf(DatasetImporterForGoMexSI2.class)));
    DatasetImporterForGoMexSI2 gomexsiImporter = (DatasetImporterForGoMexSI2) importer;
    assertThat(gomexsiImporter.getSourceCitation(), is("http://gomexsi.tamucc.edu"));
}
Also used : DatasetRegistryGitHubRemote(org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote) DatasetImporterForGoMexSI2(org.eol.globi.data.DatasetImporterForGoMexSI2) 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 DatasetImporterForGoMexSI2 (org.eol.globi.data.DatasetImporterForGoMexSI2)1 DatasetRegistryGitHubRemote (org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote)1 Test (org.junit.Test)1