Search in sources :

Example 1 with UberonLookupService

use of org.eol.globi.taxon.UberonLookupService in project eol-globi-data by jhpoelen.

the class StudyImporterForAkinTest method parseLifeStage.

@Test
public void parseLifeStage() throws TermLookupServiceException {
    UberonLookupService service = new UberonLookupService();
    assertThat(StudyImporterForAkin.parseLifeStage(service, "something egg").get(0).getId(), is("UBERON:0007379"));
    assertThat(StudyImporterForAkin.parseLifeStage(service, "something eggs").get(0).getId(), is("UBERON:0007379"));
    assertThat(StudyImporterForAkin.parseLifeStage(service, "something larvae").get(0).getId(), is("UBERON:0000069"));
    assertThat(StudyImporterForAkin.parseLifeStage(service, "something zoea").get(0).getId(), is("UBERON:0000069"));
}
Also used : UberonLookupService(org.eol.globi.taxon.UberonLookupService) Test(org.junit.Test)

Example 2 with UberonLookupService

use of org.eol.globi.taxon.UberonLookupService in project eol-globi-data by jhpoelen.

the class DatasetImporterForAkinTest method parseLifeStage.

@Test
public void parseLifeStage() throws TermLookupServiceException {
    UberonLookupService service = new UberonLookupService();
    assertThat(DatasetImporterForAkin.parseLifeStage(service, "something egg").get(0).getId(), is("UBERON:0007379"));
    assertThat(DatasetImporterForAkin.parseLifeStage(service, "something eggs").get(0).getId(), is("UBERON:0007379"));
    assertThat(DatasetImporterForAkin.parseLifeStage(service, "something larvae").get(0).getId(), is("UBERON:0000069"));
    assertThat(DatasetImporterForAkin.parseLifeStage(service, "something zoea").get(0).getId(), is("UBERON:0000069"));
}
Also used : UberonLookupService(org.eol.globi.taxon.UberonLookupService) Test(org.junit.Test)

Aggregations

UberonLookupService (org.eol.globi.taxon.UberonLookupService)2 Test (org.junit.Test)2