@Test void shouldProvideInstantiationForClassWithInheritance() { Resolution<Child> injection = provider.safeGet(Child.class); assertThat(injection, not(nullValue())); assertThat(injection.getDependencies(), hasSize(5)); }
@Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } DefaultInjectionProvider(String rootPackage); }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } DefaultInjectionProvider(String rootPackage); @Override Resolution<T> safeGet(Class<T> clazz); }
DefaultInjectionProvider extends StandardInjectionProvider { @Override public <T> Resolution<T> safeGet(Class<T> clazz) { verifyIsClassPackageAllowed(clazz); return super.safeGet(clazz); } DefaultInjectionProvider(String rootPackage); @Override Resolution<T> safeGet(Class<T> clazz);  }