use of org.eol.globi.data.BaseStudyImporter in project eol-globi-data by jhpoelen.
the class GitHubImporterFactoryIT method createSIAD.
@Test
public void createSIAD() throws StudyImporterException, DatasetFinderException {
final DatasetFinderGitHubRemote datasetFinderGitHubRemote = new DatasetFinderGitHubRemote();
StudyImporter importer = importerFor(datasetFinderGitHubRemote, "globalbioticinteractions/siad");
assertThat(importer, is(notNullValue()));
Dataset dataset = ((BaseStudyImporter) importer).getDataset();
final JsonNode config = dataset.getConfig();
assertThat(config, is(notNullValue()));
assertThat(dataset.getOrDefault(DatasetConstant.SHOULD_RESOLVE_REFERENCES, "donald"), is("false"));
}
use of org.eol.globi.data.BaseStudyImporter in project eol-globi-data by jhpoelen.
the class GitHubImporterFactoryIT method createHurlbert.
@Test
public void createHurlbert() throws StudyImporterException, DatasetFinderException {
final DatasetFinderGitHubRemote datasetFinderGitHubRemote = new DatasetFinderGitHubRemote();
StudyImporter importer = importerFor(datasetFinderGitHubRemote, "hurlbertlab/dietdatabase");
assertThat(importer, is(notNullValue()));
assertThat(importer, is(instanceOf(StudyImporterForHurlbert.class)));
final JsonNode config = ((BaseStudyImporter) importer).getDataset().getConfig();
assertThat(config, is(notNullValue()));
}
Aggregations