• Andy Wilkinson's avatar
    Test that a broken factory bean does not break resetting of mocks · 46e8cf4a
    Andy Wilkinson authored
    Previously, ResetMocksTestExecutionListener used getBean(name) to
    retrieve each instantiated singleton. When the instantiated singleton
    was a factory bean, this would cause getObject on the factory bean to
    be called. If the factory bean was unable to produce its object, for
    example due to test slicing excluding something, an exception would
    be thrown.
    
    The previous commit updated ResetMocksTestsExecutionListener to
    use getSingleton(name) rather than getBean(name).  This will retrieve
    the factory bean itself rather than causing the factory bean to
    attempt to create an object. This commit updates the tests to verify
    the new behaviour.
    
    Closes gh-7270
    46e8cf4a
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...