@Test public void providesNullInstanceForNotAnnotatedField() throws Exception { DependencySupplierImpl dependencySupplier = createDependencySupplier("foo", -1); java.lang.reflect.Field field = SomeType.class.getDeclaredField("notInjectable"); FieldInjector fieldInjector = createFieldInjector(field); Object instance = dependencySupplier.getInstance(fieldInjector); assertNull(instance); }
@Override public Object getInstance(Class<?> type) { return dependencies.get(type); }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } DependencySupplierImpl();  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation); }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } DependencySupplierImpl();  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation); void addInstance(Class<?> key, Object instance); @Override Object getInstance(Class<?> type); }
DependencySupplierImpl extends BaseDependencySupplier { @Override public Object getInstance(Class<?> type) { return dependencies.get(type); } DependencySupplierImpl();  DependencySupplierImpl(Class<? extends Annotation> injectAnnotation); void addInstance(Class<?> key, Object instance); @Override Object getInstance(Class<?> type);  }