Polish "Restore proxying of @Bean methods in @TestConfiguration"
See gh-18675
This commit is contained in:
@@ -6840,7 +6840,7 @@ The following example shows a `RestDocumentationResultHandler` being defined:
|
||||
|
||||
[source,java,indent=0]
|
||||
----
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class ResultHandlerConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.restdocs.templates.TemplateFormats;
|
||||
public class AdvancedConfigurationExample {
|
||||
|
||||
// tag::configuration[]
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
public static class CustomizationConfiguration implements RestDocsRestAssuredConfigurationCustomizer {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.restdocs.webtestclient.WebTestClientRestDocumentation
|
||||
public class AdvancedConfigurationExample {
|
||||
|
||||
// tag::configuration[]
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
public static class CustomizationConfiguration implements RestDocsWebTestClientConfigurationCustomizer {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -49,7 +49,7 @@ class SampleWebClientTests {
|
||||
assertThat(headers.getLocation()).hasHost("other.example.com");
|
||||
}
|
||||
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class Config {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user