use of org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote 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"));
}
use of org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote in project eol-globi-data by jhpoelen.
the class DatasetImporterFactoryImplIT method createMetaTableREEM.
@Test
public void createMetaTableREEM() throws StudyImporterException, DatasetRegistryException {
final DatasetRegistryGitHubRemote datasetFinderGitHubRemote = new DatasetRegistryGitHubRemote(inStream -> inStream);
DatasetImporter importer = importerFor(datasetFinderGitHubRemote, "globalbioticinteractions/noaa-reem");
assertThat(importer, is(notNullValue()));
assertThat(importer, is(instanceOf(DatasetImporterForMetaTable.class)));
final JsonNode config = ((DatasetImporterForMetaTable) importer).getConfig();
assertThat(config, is(notNullValue()));
}
Aggregations