We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I just stumbled accross this when moving a test from MockMvc to MockMvcWebTestClient.
As far as I could see the AutoConfigureRestDocs for WebTestClient only works in a reactive web app. It's not a big deal, as I could workaround like
@ExtendWith(RestDocumentationExtension.class) @WebMvcTest(CustomerApiController.class) class CustomerApiControllerTest { private WebTestClient client; @Autowired MockMvc mockMvc; @BeforeEach public void setUp(RestDocumentationContextProvider restDocumentation) { this.client = MockMvcWebTestClient.bindTo(mockMvc).baseUrl("http://localhost") .filter(documentationConfiguration(restDocumentation)) .build(); }
Can you imagine providing something like this with the AutoConfiguration?
The text was updated successfully, but these errors were encountered:
Duplicates #691 and spring-projects/spring-boot#35348.
Sorry, something went wrong.
@wilkinsona Thanks for pointing me there. As for my use case this workaround seems to do what I need.
No branches or pull requests
I just stumbled accross this when moving a test from MockMvc to MockMvcWebTestClient.
As far as I could see the AutoConfigureRestDocs for WebTestClient only works in a reactive web app. It's not a big deal, as I could workaround like
Can you imagine providing something like this with the AutoConfiguration?
The text was updated successfully, but these errors were encountered: