use of org.eol.globi.data.StudyImporterForCoetzer in project eol-globi-data by jhpoelen.
the class GitHubImporterFactoryIT method createAfrotropicalBees.
@Test
public void createAfrotropicalBees() throws StudyImporterException, DatasetFinderException {
final DatasetFinderGitHubRemote datasetFinderGitHubRemote = new DatasetFinderGitHubRemote();
String repo = "globalbioticinteractions/Catalogue-of-Afrotropical-Bees";
StudyImporter importer = importerFor(datasetFinderGitHubRemote, repo);
assertThat(importer, is(notNullValue()));
assertThat(importer, is(instanceOf(StudyImporterForCoetzer.class)));
assertThat(((StudyImporterForCoetzer) importer).getDataset(), is(notNullValue()));
String archiveURL = ((StudyImporterForCoetzer) importer).getResourceArchiveURI();
assertThat(archiveURL, endsWith("CatalogueOfAfrotropicalBees.zip"));
assertThat(URI.create(archiveURL).isAbsolute(), is(true));
}
Aggregations