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

Validation fails with null edge case #249

Closed
mikeloll opened this Issue Jun 5, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@mikeloll

mikeloll commented Jun 5, 2017

When using ValidationUtils::validateValues, if the actualValue is null then the expectedValue is not evaluated to determine whether it is a validation matcher expression or not - it is simply checked to see if it, too, is null. If not, the validation fails.

I would expect that you could use @assertThat(nullValue())@ with a json-path expression to assert that some property in your json is null. But you cannot.

@christophd christophd added this to the v2.7.2 milestone Jun 13, 2017

@christophd christophd added IN PROGRESS and removed READY labels Jun 28, 2017

@christophd christophd self-assigned this Jun 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment