public abstract class NeedleTestcase extends Object
ObjectUnderTest. After initialization, InjectIntoMany and
InjectInto annotations are processed for optional additional
injections.
Supported injections are:
ObjectUnderTest,
InjectInto,
InjectIntoMany,
InjectionProvider| Modifier and Type | Method and Description |
|---|---|
<X> X |
getInjectedObject(Object key)
Returns the injected object for the given key, or null if no object was
injected with the given key.
|
<X extends MockProvider> |
getMockProvider()
Returns an instance of the configured
MockProvider |
public <X> X getInjectedObject(Object key)
key - the key of the injected object, see
InjectionProvider.getKey(InjectionTargetInformation)public <X extends MockProvider> X getMockProvider()
MockProviderMockProviderCopyright © 2014. All rights reserved.