@Test @SuppressWarnings("unchecked") public <T> void testBind(@Mocked ServiceBindingBuilder<T> bindingBuilder) { givenServiceLocator(); givenInjections(bindingBuilder); underTest.initialize(serviceLocator); underTest.bind(MyProvider.class, Sets.newHashSet(MyProviderImpl.class)); new Verifications() {{ bindingBuilder.to(MyProviderImpl.class); }}; }
@Override public boolean bind(Class<?> component, Set<Class<?>> providerContracts) { boolean isBound = false; if (isJaxRsClass(component)) { registerBindingsInHK2(component, providerContracts); isBound = true; } return isBound; }
GuiceComponentProvider implements ComponentProvider { @Override public boolean bind(Class<?> component, Set<Class<?>> providerContracts) { boolean isBound = false; if (isJaxRsClass(component)) { registerBindingsInHK2(component, providerContracts); isBound = true; } return isBound; } }
GuiceComponentProvider implements ComponentProvider { @Override public boolean bind(Class<?> component, Set<Class<?>> providerContracts) { boolean isBound = false; if (isJaxRsClass(component)) { registerBindingsInHK2(component, providerContracts); isBound = true; } return isBound; }  }
GuiceComponentProvider implements ComponentProvider { @Override public boolean bind(Class<?> component, Set<Class<?>> providerContracts) { boolean isBound = false; if (isJaxRsClass(component)) { registerBindingsInHK2(component, providerContracts); isBound = true; } return isBound; }  void initialize(InjectionManager injectionManager); @Override boolean bind(Class<?> component, Set<Class<?>> providerContracts); @Override void done(); }
GuiceComponentProvider implements ComponentProvider { @Override public boolean bind(Class<?> component, Set<Class<?>> providerContracts) { boolean isBound = false; if (isJaxRsClass(component)) { registerBindingsInHK2(component, providerContracts); isBound = true; } return isBound; }  void initialize(InjectionManager injectionManager); @Override boolean bind(Class<?> component, Set<Class<?>> providerContracts); @Override void done();  }