@Test public void resolveTermWhenTermIdIsBlankReturnsNull() throws Exception { final VocabularyTerm term1 = this.vocabularyManager.resolveTerm(""); Assert.assertNull(term1); final VocabularyTerm term2 = this.vocabularyManager.resolveTerm(" "); Assert.assertNull(term2); }
@Override public VocabularyTerm resolveTerm(String termId) { Vocabulary vocabulary = getVocabularyForTerm(termId); if (vocabulary != null) { return vocabulary.getTerm(termId); } return null; }
DefaultVocabularyManager implements VocabularyManager { @Override public VocabularyTerm resolveTerm(String termId) { Vocabulary vocabulary = getVocabularyForTerm(termId); if (vocabulary != null) { return vocabulary.getTerm(termId); } return null; } }
DefaultVocabularyManager implements VocabularyManager { @Override public VocabularyTerm resolveTerm(String termId) { Vocabulary vocabulary = getVocabularyForTerm(termId); if (vocabulary != null) { return vocabulary.getTerm(termId); } return null; }  }
DefaultVocabularyManager implements VocabularyManager { @Override public VocabularyTerm resolveTerm(String termId) { Vocabulary vocabulary = getVocabularyForTerm(termId); if (vocabulary != null) { return vocabulary.getTerm(termId); } return null; }  @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 VocabularyTerm resolveTerm(String termId) { Vocabulary vocabulary = getVocabularyForTerm(termId); if (vocabulary != null) { return vocabulary.getTerm(termId); } return null; }  @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);  }