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.

  • Classes
    Class
    Description
    If applied, this fake will take over calls to AbstractBeanFactory.getBean(String) and AbstractBeanFactory.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.
    A WebApplicationContext implementation which exposes the @Tested objects and their injected dependencies declared in the current test class.