• Brian Clozel's avatar
    Fix TestRestTemplate request factory management · db7268b8
    Brian Clozel authored
    This commit fixes two issues in `TestRestTemplate`:
    
    * it improves the detection of the underlying request factory, using
    reflection to look inside the intercepting request factory if
    interceptors were configured
    
    * it avoids reusing the same request factory when creating a new
    `TestRestTemplate` with `withBasicAuth`. Sharing the same instance would
    result in sharing authentication state (HTTP cookies). Since the
    original request factory can't be detected consistently, a new one is
    selected automatically
    
    See gh-8697
    db7268b8
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...
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...