All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.needle4j.injection.CDIInstanceInjectionProvider Maven / Gradle / Ivy

Go to download

Needle is a lightweight framework for testing Java EE components outside of the container in isolation. It reduces the test setup code by analysing dependencies and automatic injection of mock objects. It will thus maximize the speed of development as well as the execution of unit tests.

The newest version!
package org.needle4j.injection;

public class CDIInstanceInjectionProvider extends DefaultMockInjectionProvider {
  public CDIInstanceInjectionProvider(final Class annotationClass,
                                      final InjectionConfiguration injectionConfiguration) {
    super(annotationClass, injectionConfiguration);
  }

  @Override
  public Object getKey(final InjectionTargetInformation injectionTargetInformation) {
    return injectionTargetInformation.getGenericTypeParameter();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy