@Test public void isVocabularySupported() throws Exception { Assert.assertTrue(this.extension.isVocabularySupported(this.vocabulary)); final Vocabulary wrongVocabulary = mock(Vocabulary.class); when(wrongVocabulary.getIdentifier()).thenReturn("WRONG"); Assert.assertFalse(this.extension.isVocabularySupported(wrongVocabulary)); }
@Override public boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary) { return getTargetVocabularyIds().contains(vocabulary.getIdentifier()); }
AbstractCSVAnnotationsExtension implements VocabularyExtension { @Override public boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary) { return getTargetVocabularyIds().contains(vocabulary.getIdentifier()); } }
AbstractCSVAnnotationsExtension implements VocabularyExtension { @Override public boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary) { return getTargetVocabularyIds().contains(vocabulary.getIdentifier()); }  }
AbstractCSVAnnotationsExtension implements VocabularyExtension { @Override public boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary) { return getTargetVocabularyIds().contains(vocabulary.getIdentifier()); }  @Override boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary); @Override void indexingStarted(@Nonnull final Vocabulary vocabulary); @Override void extendTerm(VocabularyInputTerm term, Vocabulary vocabulary); @Override void indexingEnded(Vocabulary vocabulary); @Override void extendQuery(SolrQuery query, Vocabulary vocabulary); }
AbstractCSVAnnotationsExtension implements VocabularyExtension { @Override public boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary) { return getTargetVocabularyIds().contains(vocabulary.getIdentifier()); }  @Override boolean isVocabularySupported(@Nonnull final Vocabulary vocabulary); @Override void indexingStarted(@Nonnull final Vocabulary vocabulary); @Override void extendTerm(VocabularyInputTerm term, Vocabulary vocabulary); @Override void indexingEnded(Vocabulary vocabulary); @Override void extendQuery(SolrQuery query, Vocabulary vocabulary);  }