public final class JsonValueIs
extends org.hamcrest.TypeSafeMatcher<javax.json.JsonValue>
| Modifier and Type | Field and Description |
|---|---|
static org.hamcrest.TypeSafeMatcher<javax.json.JsonValue> |
NULL
Matcher for json-null.
|
| Constructor and Description |
|---|
JsonValueIs(boolean bool)
Ctor for boolean.
|
JsonValueIs(javax.json.JsonValue.ValueType type,
org.hamcrest.Matcher<String> matcher)
Ctor.
|
JsonValueIs(org.hamcrest.Matcher<javax.json.JsonValue.ValueType> type,
org.hamcrest.Matcher<String> value)
Ctor.
|
JsonValueIs(org.hamcrest.Matcher<String> value)
Ctor for string.
|
JsonValueIs(Number number)
Ctor for number.
|
JsonValueIs(String value)
Ctor for string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(javax.json.JsonValue item,
org.hamcrest.Description desc) |
void |
describeTo(org.hamcrest.Description desc) |
boolean |
matchesSafely(javax.json.JsonValue item) |
public static final org.hamcrest.TypeSafeMatcher<javax.json.JsonValue> NULL
public JsonValueIs(boolean bool)
bool - Boolean valuepublic JsonValueIs(Number number)
number - Expected numberpublic JsonValueIs(String value)
value - Expected valuepublic JsonValueIs(org.hamcrest.Matcher<String> value)
value - Json value.public JsonValueIs(javax.json.JsonValue.ValueType type,
org.hamcrest.Matcher<String> matcher)
type - Value typematcher - Value matcherpublic JsonValueIs(org.hamcrest.Matcher<javax.json.JsonValue.ValueType> type,
org.hamcrest.Matcher<String> value)
type - Json type.value - Json value.public void describeTo(org.hamcrest.Description desc)
public boolean matchesSafely(javax.json.JsonValue item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<javax.json.JsonValue>public void describeMismatchSafely(javax.json.JsonValue item,
org.hamcrest.Description desc)
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<javax.json.JsonValue>Copyright © 2012–2021 jcabi.com. All rights reserved.