public final class JsonHas
extends org.hamcrest.TypeSafeMatcher<javax.json.JsonObject>
| Constructor and Description |
|---|
JsonHas(String field,
org.hamcrest.Matcher<? extends javax.json.JsonValue> matcher)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(javax.json.JsonObject item,
org.hamcrest.Description desc) |
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(javax.json.JsonObject item) |
public JsonHas(String field, org.hamcrest.Matcher<? extends javax.json.JsonValue> matcher)
field - Field namematcher - Value matcherpublic void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(javax.json.JsonObject item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<javax.json.JsonObject>protected void describeMismatchSafely(javax.json.JsonObject item,
org.hamcrest.Description desc)
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<javax.json.JsonObject>Copyright © 2019. All rights reserved.