@Test public void getVocabulary() throws Exception { Assert.assertEquals(this.hpo, this.vocabularyManager.getVocabulary(HPO_LABEL)); Assert.assertEquals(this.hpo, this.vocabularyManager.getVocabulary(HP_LABEL)); Assert.assertEquals(this.hgnc, this.vocabularyManager.getVocabulary(HGNC_CAPS_LABEL)); Assert.assertEquals(this.hgnc, this.vocabularyManager.getVocabulary(HGNC_LABEL)); Assert.assertEquals(this.omim, this.vocabularyManager.getVocabulary(OMIM_LABEL)); Assert.assertEquals(this.omim, this.vocabularyManager.getVocabulary(MIM_LABEL)); Assert.assertEquals(this.ethnicity, this.vocabularyManager.getVocabulary(ETHNICITY_LABEL)); Assert.assertEquals(this.ethnicity, this.vocabularyManager.getVocabulary(ETHNO_LABEL)); Assert.assertEquals(this.chebi, this.vocabularyManager.getVocabulary(CHEBI_LABEL)); Assert.assertEquals(this.chebi, this.vocabularyManager.getVocabulary(CHEBI_CAPS_LABEL)); }
@Override public Vocabulary getVocabulary(String vocabularyId) { return this.constructVocabulariesByAlias().get(vocabularyId); }
DefaultVocabularyManager implements VocabularyManager { @Override public Vocabulary getVocabulary(String vocabularyId) { return this.constructVocabulariesByAlias().get(vocabularyId); } }
DefaultVocabularyManager implements VocabularyManager { @Override public Vocabulary getVocabulary(String vocabularyId) { return this.constructVocabulariesByAlias().get(vocabularyId); }  }
DefaultVocabularyManager implements VocabularyManager { @Override public Vocabulary getVocabulary(String vocabularyId) { return this.constructVocabulariesByAlias().get(vocabularyId); }  @Override VocabularyTerm resolveTerm(String termId); @Override Vocabulary getVocabulary(String vocabularyId); @Override Set<Vocabulary> getVocabularies(final String category); @Override List<String> getAvailableVocabularies(); @Override List<String> getAvailableCategories(); @Override List<VocabularyTerm> search(@Nullable final String input, @Nullable final String category,
        final int maxResults); @Override boolean hasVocabulary(final String vocabulary); @Override boolean hasCategory(final String category); }
DefaultVocabularyManager implements VocabularyManager { @Override public Vocabulary getVocabulary(String vocabularyId) { return this.constructVocabulariesByAlias().get(vocabularyId); }  @Override VocabularyTerm resolveTerm(String termId); @Override Vocabulary getVocabulary(String vocabularyId); @Override Set<Vocabulary> getVocabularies(final String category); @Override List<String> getAvailableVocabularies(); @Override List<String> getAvailableCategories(); @Override List<VocabularyTerm> search(@Nullable final String input, @Nullable final String category,
        final int maxResults); @Override boolean hasVocabulary(final String vocabulary); @Override boolean hasCategory(final String category);  }