Package mockit.integration.springframework
package mockit.integration.springframework
Provides integration with Spring Framework's bean
factories.
This integration allows calls to BeanFactory.getBean(String) to be resolved
with @Tested objects and their injected dependencies (including
@Injectable instances) from the currently executing test class.
-
ClassesClassDescriptionIf applied, this fake will take over calls to
AbstractBeanFactory.getBean(String)andAbstractBeanFactory.getBean(String, Class)in any implementation class, returning instead a@Testedor@Injectableobject with the given field name, or a dependency object injected at any level into a@Testedobject.AWebApplicationContextimplementation which exposes the @Tested objects and their injected dependencies declared in the current test class.