Skip to content

SPR-13320: Additional Testing Methods Added To JsonPathResultMatchers #854

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

candrews
Copy link
Contributor

@candrews candrews commented Aug 6, 2015

JsonPathResultMatchers has some useful methods:

  • doesNotExist
  • exists
  • isArray

This commit adds a few more useful methods:

  • isBoolean
  • isNumber
  • isMap
  • isString

Issue: https://jira.spring.io/browse/SPR-13320

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.

@elreydetodo
Copy link

There's a minor typo in one of the unit tests, though arguably it will still work even then. The patch looks like exactly what I was hoping for. Thanks, Craig!

@sbrannen sbrannen self-assigned this Aug 6, 2015
}

/**
* Evluate the JSON path and assert the content found is a string.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evaluate*

JsonPathResultMatchers has some useful methods:
* doesNotExist
* exists
* isArray

This commit adds a few more useful methods:
* isBoolean
* isNumber
* isMap
* isString

Issue: SPR-13320
sbrannen added a commit to sbrannen/spring-framework that referenced this pull request Aug 6, 2015
* SPR-13320:
  Introduce additional JsonPath matchers in Spring MVC Test
@sbrannen
Copy link
Member

sbrannen commented Aug 6, 2015

This has been polished and merged into master in commit 35dd307.

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

Successfully merging this pull request may close these issues.

4 participants