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

Create MockHttpServletRequestBuilder.accept(String ...mediatTypes) overload. [SPR-10390] #15023

Closed
spring-issuemaster opened this issue Mar 17, 2013 · 0 comments
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Mar 17, 2013

Karl Bennett opened SPR-10390 and commented

There isn't currently a MockHttpServletRequestBuilder.accept method that accepts String representations of MIME types. This would be useful, it is also alluded to in the current documentation and it would better match the functionality of the ContentResultMatchers.contentType method.


Affects: 3.2.2

Reference URL: http://static.springsource.org/spring/docs/3.2.x/javadoc-api/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.html#accept(org.springframework.http.MediaType...)

Issue Links:

  • #15022 Fix errors in Spring MVC Test server-side code examples
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
You can’t perform that action at this time.