Skip to content

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
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