@Test void testFindOntologyTermsNoTerms() { assertEquals( emptyList(), ontologyServiceImpl.findOntologyTerms(singletonList("ontology1"), emptySet(), 100)); verifyNoInteractions(ontologyRepository); }
@Override public List<OntologyTerm> findOntologyTerms( List<String> ontologyIds, Set<String> terms, int pageSize) { if (ontologyIds.isEmpty()) { return Collections.emptyList(); } if (null == terms || terms.isEmpty()) { return Lists.newArrayList(); } return ontologyTermRepository.findOntologyTerms(ontologyIds, terms, pageSize); }
OntologyServiceImpl implements OntologyService { @Override public List<OntologyTerm> findOntologyTerms( List<String> ontologyIds, Set<String> terms, int pageSize) { if (ontologyIds.isEmpty()) { return Collections.emptyList(); } if (null == terms || terms.isEmpty()) { return Lists.newArrayList(); } return ontologyTermRepository.findOntologyTerms(ontologyIds, terms, pageSize); } }
OntologyServiceImpl implements OntologyService { @Override public List<OntologyTerm> findOntologyTerms( List<String> ontologyIds, Set<String> terms, int pageSize) { if (ontologyIds.isEmpty()) { return Collections.emptyList(); } if (null == terms || terms.isEmpty()) { return Lists.newArrayList(); } return ontologyTermRepository.findOntologyTerms(ontologyIds, terms, pageSize); } OntologyServiceImpl(
      OntologyRepository ontologyRepository, OntologyTermRepository ontologyTermRepository); }
OntologyServiceImpl implements OntologyService { @Override public List<OntologyTerm> findOntologyTerms( List<String> ontologyIds, Set<String> terms, int pageSize) { if (ontologyIds.isEmpty()) { return Collections.emptyList(); } if (null == terms || terms.isEmpty()) { return Lists.newArrayList(); } return ontologyTermRepository.findOntologyTerms(ontologyIds, terms, pageSize); } OntologyServiceImpl(
      OntologyRepository ontologyRepository, OntologyTermRepository ontologyTermRepository); @Override List<Ontology> getOntologies(); @Override List<Ontology> getOntologies(List<String> ontologyIds); @Override List<String> getAllOntologiesIds(); @Override Ontology getOntology(String name); @Override OntologyTerm getOntologyTerm(String iri); @Override List<OntologyTerm> findExactOntologyTerms(
      List<String> ontologyIds, Set<String> terms, int pageSize); @Override List<OntologyTerm> findOntologyTerms(
      List<String> ontologyIds, Set<String> terms, int pageSize); @Override List<OntologyTerm> getChildren(OntologyTerm ontologyTerm); @Override Integer getOntologyTermDistance(OntologyTerm ontologyTerm1, OntologyTerm ontologyTerm2); }
OntologyServiceImpl implements OntologyService { @Override public List<OntologyTerm> findOntologyTerms( List<String> ontologyIds, Set<String> terms, int pageSize) { if (ontologyIds.isEmpty()) { return Collections.emptyList(); } if (null == terms || terms.isEmpty()) { return Lists.newArrayList(); } return ontologyTermRepository.findOntologyTerms(ontologyIds, terms, pageSize); } OntologyServiceImpl(
      OntologyRepository ontologyRepository, OntologyTermRepository ontologyTermRepository); @Override List<Ontology> getOntologies(); @Override List<Ontology> getOntologies(List<String> ontologyIds); @Override List<String> getAllOntologiesIds(); @Override Ontology getOntology(String name); @Override OntologyTerm getOntologyTerm(String iri); @Override List<OntologyTerm> findExactOntologyTerms(
      List<String> ontologyIds, Set<String> terms, int pageSize); @Override List<OntologyTerm> findOntologyTerms(
      List<String> ontologyIds, Set<String> terms, int pageSize); @Override List<OntologyTerm> getChildren(OntologyTerm ontologyTerm); @Override Integer getOntologyTermDistance(OntologyTerm ontologyTerm1, OntologyTerm ontologyTerm2);  }