• Andy Wilkinson's avatar
    Honor spring.autoconfigure.exclude in test slices · 502ccb65
    Andy Wilkinson authored
    Previously, the import selector for `@ImportAutoConfiguration` did not
    consider the spring.autoconfigure.exclude property when determining
    which auto-configurations to exclude. This meant that tests using a
    slice that included a particular auto-configuration would include it
    even if the application's configuration excluded it via
    spring.autoconfigure.exclude. Confusingly, this could result in a
    sliced test using an auto-configuration that would be excluded in a
    broader `@SpringBootTest`.
    
    This commit updates the ImportAutoConfigurationImportSelector to
    consider the spring.autoconfigure.exclude property so that sliced tests
    will use a subset of the auto-configurations that a `@SpringBootTest`
    would use.
    
    Fixes gh-21736
    502ccb65
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore 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...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...