Search in sources :

Example 21 with DatasetImporter

use of org.eol.globi.data.DatasetImporter 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()));
}
Also used : DatasetImporterForMetaTable(org.eol.globi.data.DatasetImporterForMetaTable) DatasetRegistryGitHubRemote(org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote) JsonNode(com.fasterxml.jackson.databind.JsonNode) BaseDatasetImporter(org.eol.globi.data.BaseDatasetImporter) DatasetImporter(org.eol.globi.data.DatasetImporter) Test(org.junit.Test)

Aggregations

DatasetImporter (org.eol.globi.data.DatasetImporter)21 BaseDatasetImporter (org.eol.globi.data.BaseDatasetImporter)16 Test (org.junit.Test)16 DatasetRegistryGitHubRemote (org.globalbioticinteractions.dataset.DatasetRegistryGitHubRemote)15 JsonNode (com.fasterxml.jackson.databind.JsonNode)6 Dataset (org.globalbioticinteractions.dataset.Dataset)6 StudyImporterException (org.eol.globi.data.StudyImporterException)5 DatasetFactory (org.globalbioticinteractions.dataset.DatasetFactory)5 DatasetRegistry (org.globalbioticinteractions.dataset.DatasetRegistry)5 InputStream (java.io.InputStream)4 URI (java.net.URI)4 DatasetImporterForCoetzer (org.eol.globi.data.DatasetImporterForCoetzer)4 DatasetImporterForGoMexSI2 (org.eol.globi.data.DatasetImporterForGoMexSI2)4 DatasetImporterForHafner (org.eol.globi.data.DatasetImporterForHafner)4 DatasetImporterForMetaTable (org.eol.globi.data.DatasetImporterForMetaTable)4 DatasetImporterForPlanque (org.eol.globi.data.DatasetImporterForPlanque)4 DatasetImporterForSzoboszlai (org.eol.globi.data.DatasetImporterForSzoboszlai)4 DatasetImporterForTSV (org.eol.globi.data.DatasetImporterForTSV)4 DatasetImporterForWood (org.eol.globi.data.DatasetImporterForWood)4 MatcherAssert.assertThat (org.hamcrest.MatcherAssert.assertThat)4