Skip to content

Support target type in MockMvcResultMatchers.jsonPath() #23141

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

Closed
wants to merge 1 commit into from

Conversation

fodil-a
Copy link
Contributor

@fodil-a fodil-a commented Jun 15, 2019

This introduces an helper method to specify a type to coerce into
for MockMvcResultMatchers.
New signature:
MockMvcResultMatchers#jsonPath(String, Class, Matcher)

Solves #23121

Signed-off-by: RustyTheClone 21066051+rustytheclone@users.noreply.github.com

This introduces an helper method to specify a type to coerce into
for MockMvcResultMatchers.
New signature:
MockMvcResultMatchers#jsonPath(String, Class<T>, Matcher<T>)

Solves spring-projects#23121

Signed-off-by: RustyTheClone <21066051+rustytheclone@users.noreply.github.com>
@sbrannen sbrannen added in: test Issues in the test module type: enhancement A general enhancement labels Jun 18, 2019
@sbrannen sbrannen self-assigned this Jun 18, 2019
@sbrannen sbrannen removed the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 18, 2019
@sbrannen sbrannen changed the title Target type in jsonPath method of MockMvcResultMatchers Support target type in MockMvcResultMatchers.jsonPath() Jun 18, 2019
@sbrannen sbrannen closed this in 72adc3d Jun 18, 2019
sbrannen added a commit that referenced this pull request Jun 18, 2019
@sbrannen
Copy link
Member

This has been merged into master in 72adc3d and further refined in ef6471f.

Thanks for the contribution.

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

Successfully merging this pull request may close these issues.

4 participants