Package mockit.internal.injection
Class InjectionState
java.lang.Object
mockit.internal.injection.InjectionState
Holds state used throughout the injection process while it's in progress for a given set of tested objects.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <D> D
getInstantiatedDependency
(TestedClass testedClass, InjectionPoint dependencyKey) getTestedValue
(TestedClass testedClass, InjectionPoint injectionPoint) getValueToInject
(InjectionProvider injectionProvider) Class
<?> resolveInterface
(Class<?> anInterface) static void
saveGlobalDependency
(InjectionPoint dependencyKey, Object dependency) void
saveInstantiatedDependency
(InjectionPoint dependencyKey, Object dependency)
-
Field Details
-
injectionProviders
-
lifecycleMethods
-
-
Method Details
-
getValueToInject
-
getGlobalDependency
-
getTestedValue
@Nullable public Object getTestedValue(@NonNull TestedClass testedClass, @NonNull InjectionPoint injectionPoint) -
getInstantiatedDependency
@Nullable public Object getInstantiatedDependency(@Nullable TestedClass testedClass, @NonNull InjectionPoint dependencyKey) -
saveInstantiatedDependency
public void saveInstantiatedDependency(@NonNull InjectionPoint dependencyKey, @NonNull Object dependency) -
saveGlobalDependency
public static void saveGlobalDependency(@NonNull InjectionPoint dependencyKey, @NonNull Object dependency) -
resolveInterface
-