Skip to content
New issue

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

Provide access to the unexpanded URI template when using MockMvc #33509

Closed
snicoll opened this issue Sep 9, 2024 · 0 comments
Closed

Provide access to the unexpanded URI template when using MockMvc #33509

snicoll opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels
in: test Issues in the test module type: enhancement A general enhancement
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented Sep 9, 2024

Spring REST Docs needs to capture the raw URI template to post-process it and this broke with MockMvcTester as the fluent API no longer uses the builder that captures the template. There was a similar problem for WebFlux that we fixed by providing an accessor to the URI template.

For consistency, we should provide one for MVC as well.

@snicoll snicoll added in: test Issues in the test module type: enhancement A general enhancement labels Sep 9, 2024
@snicoll snicoll added this to the 6.2.0-RC1 milestone Sep 9, 2024
@snicoll snicoll self-assigned this Sep 9, 2024
@snicoll snicoll changed the title Improve MockHttpServletRequest to provide access to the raw URI template, if any Provide access to the unexpanded URI template when using MockMvc Sep 9, 2024
@snicoll snicoll closed this as completed in e311d98 Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant