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@Tested
or@Injectable
object with the given field name, or a dependency object injected at any level into a@Tested
object.AWebApplicationContext
implementation which exposes the @Tested objects and their injected dependencies declared in the current test class.