@Test public void testEmptyProviderLookup() { final Hk2CustomBoundTypesProvider[] providers = ServiceFinder.find(Hk2CustomBoundTypesProvider.class).toArray(); assertThat(providers, is(notNullValue())); assertThat(providers.length, is(1)); final Hk2CustomBoundTypesProvider theOnlyProvider = providers[0]; assertThat(theOnlyProvider, is(instanceOf(EmptyHk2CustomInjectionTypeProvider.class))); assertThat(theOnlyProvider.getHk2Types(), is(emptyCollectionOf(Type.class))); }
@Override public Set<Type> getHk2Types() { return Collections.emptySet(); }
EmptyHk2CustomInjectionTypeProvider implements Hk2CustomBoundTypesProvider { @Override public Set<Type> getHk2Types() { return Collections.emptySet(); } }
EmptyHk2CustomInjectionTypeProvider implements Hk2CustomBoundTypesProvider { @Override public Set<Type> getHk2Types() { return Collections.emptySet(); }  }
EmptyHk2CustomInjectionTypeProvider implements Hk2CustomBoundTypesProvider { @Override public Set<Type> getHk2Types() { return Collections.emptySet(); }  @Override Set<Type> getHk2Types(); }
EmptyHk2CustomInjectionTypeProvider implements Hk2CustomBoundTypesProvider { @Override public Set<Type> getHk2Types() { return Collections.emptySet(); }  @Override Set<Type> getHk2Types();  }