• Andy Wilkinson's avatar
    Make spring-boot-test compatible with Mockito 2.1 and 2.2 · 1cd781b2
    Andy Wilkinson authored
    We use some internal Mockito classes and some  breaking API changes
    have been made to them in Mockito 2. This commit introduces a utility
    class, SpringBootMockUtil, to shield our code from these differences.
    Mockito 1 is called directly and Mockito 2 is called via reflection.
    
    To allow these changes to be tested, FilteredClassPathRunner has been
    enhanced to also support overriding a dependency on the class path.
    As a result it has been renamed to ModifiedClassPathRunner. The new
    ClassPathOverrides annotation can be used to provide the Maven
    coordinates of one or more dependencies that should be resolved and
    added to the class path. Such additions are added to the start of
    the class path so that they override any existing dependency that
    contains the same classes.
    
    Closes gh-6520
    1cd781b2
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...