• Andy Wilkinson's avatar
    Remove usage of Mockito's internals · 027c5a0e
    Andy Wilkinson authored
    Previously, we relied on Mockito's internals to bypass any Spring AOP
    proxy during verification of a spy. Thanks to a new API in Mockito,
    we can replace the use of Mockito's internals with a
    VerificationStartedListener. This listener changes Mockito's view of
    the mock to be the ultimate target of the AOP proxy, i.e. to be the
    actual Mockito-created spy, allowing Mockito's verification of the
    spy to proceed successfully.
    
    This above-described change will mean that we require a very
    up-to-date version of Mockito so the tests that verify our
    compatibility with 2.5 have been removed as we will no longer support
    it when using @MockBean or @SpyBean.
    
    Lastly, two tests have been updated to replace their usage of the
    internal MockUtil class with the equivalent public API calls.
    
    Closes gh-10352
    027c5a0e
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
spring-boot-project Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-samples-invoker Loading commit data...
spring-boot-tests Loading commit data...
.editorconfig 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...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...