Add some tests

This commit is contained in:
Dave Syer
2017-05-26 14:22:25 +01:00
parent 5708ba0469
commit 9dae979d39
3 changed files with 143 additions and 36 deletions

View File

@@ -97,7 +97,7 @@ public class SpringInjector implements Injector {
@Override
public <T> Provider<T> getProvider(Key<T> key) {
// TODO: support for other metadata in the key
// TODO: support for other metadata in the key (apart from name and type)
Class<? super T> type = key.getTypeLiteral().getRawType();
final String name = extractName(key);
if (this.beanFactory.getBeanNamesForType(type, true, false).length==0) {