@Test public void allVocabulariesAreReturned() throws ComponentLookupException { Map<String, Vocabulary> result = this.mocker.getComponentUnderTest().get(); Assert.assertEquals(3, result.size()); Assert.assertSame(this.vocabulary1, result.get("v1")); Assert.assertSame(this.vocabulary2, result.get("v2")); Assert.assertSame(this.vocabulary3, result.get("v3")); }
@Override public Map<String, Vocabulary> get() { try { return this.cm.get().getInstanceMap(Vocabulary.class); } catch (ComponentLookupException e) { return Collections.emptyMap(); } }
ContextVocabularyMapProvider implements Provider<Map<String, Vocabulary>> { @Override public Map<String, Vocabulary> get() { try { return this.cm.get().getInstanceMap(Vocabulary.class); } catch (ComponentLookupException e) { return Collections.emptyMap(); } } }
ContextVocabularyMapProvider implements Provider<Map<String, Vocabulary>> { @Override public Map<String, Vocabulary> get() { try { return this.cm.get().getInstanceMap(Vocabulary.class); } catch (ComponentLookupException e) { return Collections.emptyMap(); } }  }
ContextVocabularyMapProvider implements Provider<Map<String, Vocabulary>> { @Override public Map<String, Vocabulary> get() { try { return this.cm.get().getInstanceMap(Vocabulary.class); } catch (ComponentLookupException e) { return Collections.emptyMap(); } }  @Override Map<String, Vocabulary> get(); }
ContextVocabularyMapProvider implements Provider<Map<String, Vocabulary>> { @Override public Map<String, Vocabulary> get() { try { return this.cm.get().getInstanceMap(Vocabulary.class); } catch (ComponentLookupException e) { return Collections.emptyMap(); } }  @Override Map<String, Vocabulary> get();  }