• Andy Wilkinson's avatar
    Fix LinkageError with ExpectedException and FilteredClassPathRunner · e04ace89
    Andy Wilkinson authored
    Previously, when the ExpectedException JUnit rule was used with
    FilteredClassPathRunner a LinkageError would occur if any of
    ExpectedException's methods that take a Hamcrest Matcher were called.
    This was due to the FilteredClassLoader delegating loading of
    org.junit classes to its parent but not org.hamcrest classes. This
    resulted in JUnit classes loading one version of the Hamcrest class
    and the test class loading another.
    
    This commit ensures that both the JUnit classes and the test class
    use the same version of Hamcrest classes by also delegating the
    loading of org.hamcrest classes to FilteredClassLoader's parent.
    e04ace89
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...