@Test void testGetOntologies() { ontologyEntity = mock(org.molgenis.ontology.core.meta.Ontology.class); when(ontologyEntity.getString(ID)).thenReturn("1"); when(ontologyEntity.getString(ONTOLOGY_IRI)).thenReturn("http: when(ontologyEntity.getString(ONTOLOGY_NAME)).thenReturn("testOntology"); when(dataService.findAll(eq(ONTOLOGY))).thenReturn(Stream.of(ontologyEntity)); List<Ontology> ontologies = ontologyRepository.getOntologies().collect(toList()); assertEquals(asList(create("1", "http: }
public Stream<Ontology> getOntologies() { return dataService.findAll(ONTOLOGY).map(OntologyRepository::toOntology); }
OntologyRepository { public Stream<Ontology> getOntologies() { return dataService.findAll(ONTOLOGY).map(OntologyRepository::toOntology); } }
OntologyRepository { public Stream<Ontology> getOntologies() { return dataService.findAll(ONTOLOGY).map(OntologyRepository::toOntology); }  }
OntologyRepository { public Stream<Ontology> getOntologies() { return dataService.findAll(ONTOLOGY).map(OntologyRepository::toOntology); }  Stream<Ontology> getOntologies(); Stream<Ontology> getOntologies(List<String> ontologyIds); Ontology getOntology(String iri); }
OntologyRepository { public Stream<Ontology> getOntologies() { return dataService.findAll(ONTOLOGY).map(OntologyRepository::toOntology); }  Stream<Ontology> getOntologies(); Stream<Ontology> getOntologies(List<String> ontologyIds); Ontology getOntology(String iri);  }