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