Search in sources :

Example 1 with StudyImporterForHafner

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

the class GitHubImporterFactoryIT method createHafner.

@Test
public void createHafner() throws StudyImporterException, DatasetFinderException {
    final DatasetFinder datasetFinderGitHubRemote = new DatasetFinderGitHubRemote();
    StudyImporter importer = new GitHubImporterFactory().createImporter(DatasetFactory.datasetFor("globalbioticinteractions/hafner", datasetFinderGitHubRemote), null);
    assertThat(importer, is(notNullValue()));
    StudyImporterForHafner gomexsiImporter = (StudyImporterForHafner) importer;
    assertThat(gomexsiImporter.getDataset().getResourceURI("hafner/gopher_lice_int.csv"), is("gopher_lice_int.csv"));
}
Also used : BaseStudyImporter(org.eol.globi.data.BaseStudyImporter) StudyImporter(org.eol.globi.data.StudyImporter) StudyImporterForHafner(org.eol.globi.data.StudyImporterForHafner) Test(org.junit.Test)

Aggregations

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