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

Support OPTIONS method in the MVC Test framework [SPR-10093] #14726

Closed
spring-projects-issues opened this issue Dec 13, 2012 · 2 comments
Closed

Support OPTIONS method in the MVC Test framework [SPR-10093] #14726

spring-projects-issues opened this issue Dec 13, 2012 · 2 comments

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Dec 13, 2012

Arnaud Cogoluègnes opened SPR-10093 and commented

MockMvcRequestBuilders doesn't contain an options method.

This is easily worked around, but the DispatcherServlet doesn't dispatch OPTIONS requests by default (see the FrameworkServlet.dispatchOptionsRequest flag).

DefaultMockMvcBuilder could expose this flag; otherwise, I don't see a way to test OPTIONS requests with the test framework.


Affects: 3.2 GA

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Dec 14, 2012

Arnaud Cogoluègnes commented

Just submitted a pull request.

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Dec 14, 2012

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants