public final class HasJsonValue
extends org.hamcrest.TypeSafeMatcher<com.fasterxml.jackson.databind.JsonNode>
| Constructor and Description |
|---|
HasJsonValue(String fieldName,
org.hamcrest.Matcher<?> valueMatcher)
Creates an instance of this matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(com.fasterxml.jackson.databind.JsonNode jsonNode) |
describeMismatch, describeMismatchSafely, matchespublic HasJsonValue(String fieldName, org.hamcrest.Matcher<?> valueMatcher)
fieldName - The field name against which the matcher will be evaluatedvalueMatcher - The matcher to be used to evaluate the value found at the given field nameCopyright © 2013. All Rights Reserved.