T
- the assertion classpublic abstract static class AssertJJsonValueAssert.AbstractJsonValueAssert<T extends org.assertj.core.api.AbstractAssert<T,JsonValue>> extends org.assertj.core.api.AbstractAssert<T,JsonValue>
JsonValue
.Modifier and Type | Method and Description |
---|---|
org.assertj.core.api.AbstractBooleanAssert<?> |
booleanAt(String path)
Get a
AbstractBooleanAssert for the referenced JsonValue is a boolean, to check its value. |
T |
booleanIs(String path,
org.assertj.core.api.Condition<Boolean> condition)
Check that the referenced
JsonValue is a boolean. |
T |
doesNotContain(String path)
Check that the referenced
JsonValue doesn't exist in this object. |
org.assertj.core.api.AbstractDoubleAssert<?> |
doubleAt(String path)
Get a
AbstractDoubleAssert for the referenced JsonValue is a double, to check its value. |
T |
doubleIs(String path,
org.assertj.core.api.Condition<Double> condition)
Check the double value of the referenced
JsonValue . |
AssertJJsonValueAssert.ArrayJsonValueAssert |
hasArray(String path)
Check that the referenced
JsonValue is an array. |
T |
hasBoolean(String path)
Check that the referenced
JsonValue is a boolean, irrespective of its value. |
T |
hasNull(String path)
Check that the referenced
JsonValue is null. |
T |
hasNumber(String path)
Check that the referenced
JsonValue is a number, irrespective of its value. |
AssertJJsonValueAssert.ObjectJsonValueAssert |
hasObject(String path)
Check that the referenced
JsonValue is an object. |
AssertJJsonValueAssert.AbstractJsonValueAssert |
hasPath(String path)
Get a
AssertJJsonValueAssert.AbstractJsonValueAssert for the referenced JsonValue . |
T |
hasString(String path)
Check that the referenced
JsonValue is a string, irrespective of its value. |
org.assertj.core.api.AbstractIntegerAssert<?> |
integerAt(String path)
Get a
AbstractIntegerAssert for the referenced JsonValue is an integer, to check its value. |
T |
integerIs(String path,
org.assertj.core.api.Condition<Integer> condition)
Check the integer value of the referenced
JsonValue . |
AssertJJsonValueAssert.ArrayJsonValueAssert |
isArray()
Check that the
JsonValue is an array. |
org.assertj.core.api.AbstractBooleanAssert<?> |
isBoolean()
Check that the
JsonValue is a boolean. |
org.assertj.core.api.AbstractDoubleAssert<?> |
isDouble()
Check that the
JsonValue is a long. |
T |
isEmpty()
Check that the JSON is either an array or an object and is empty.
|
org.assertj.core.api.AbstractIntegerAssert<?> |
isInteger()
Check that the
JsonValue is an integer. |
org.assertj.core.api.AbstractLongAssert<?> |
isLong()
Check that the
JsonValue is a long. |
T |
isNotNull() |
void |
isNull() |
AssertJJsonValueAssert.NumberJsonValueAssert |
isNumber()
Check that the
JsonValue is a number. |
AssertJJsonValueAssert.ObjectJsonValueAssert |
isObject()
Check that the
JsonValue is an object. |
org.assertj.core.api.AbstractIterableAssert<?,? extends Iterable<?>,Object> |
isSet()
Check that the
JsonValue is a set. |
org.assertj.core.api.AbstractCharSequenceAssert<?,String> |
isString()
Check that the
JsonValue is a string. |
org.assertj.core.api.AbstractLongAssert<?> |
longAt(String path)
Get a
AbstractLongAssert for the referenced JsonValue is a long, to check its value. |
T |
longIs(String path,
org.assertj.core.api.Condition<Long> condition)
Check the long value of the referenced
JsonValue . |
org.assertj.core.api.AbstractCharSequenceAssert<?,String> |
stringAt(String path)
Get a
AbstractCharSequenceAssert for the referenced JsonValue is a string, to check its
value. |
T |
stringIs(String path,
org.assertj.core.api.Condition<String> condition)
Check the value of the referenced
JsonValue string. |
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator, withFailMessage, withThreadDumpOnError
public AssertJJsonValueAssert.ObjectJsonValueAssert isObject()
JsonValue
is an object.AssertJJsonValueAssert.ObjectJsonValueAssert
representation of this Assert instance.public AssertJJsonValueAssert.ArrayJsonValueAssert isArray()
JsonValue
is an array.AssertJJsonValueAssert.ArrayJsonValueAssert
representation of this Assert instance.public org.assertj.core.api.AbstractIterableAssert<?,? extends Iterable<?>,Object> isSet()
JsonValue
is a set.AbstractIterableAssert
representation of this Assert instance.public org.assertj.core.api.AbstractCharSequenceAssert<?,String> isString()
JsonValue
is a string.AbstractCharSequenceAssert
representation of this Assert instance.public org.assertj.core.api.AbstractBooleanAssert<?> isBoolean()
JsonValue
is a boolean.AbstractBooleanAssert
representation of this Assert instance.public AssertJJsonValueAssert.NumberJsonValueAssert isNumber()
JsonValue
is a number.AssertJJsonValueAssert.NumberJsonValueAssert
representation of this Assert instance.public org.assertj.core.api.AbstractIntegerAssert<?> isInteger()
JsonValue
is an integer.AbstractIntegerAssert
representation of this Assert instance.public org.assertj.core.api.AbstractLongAssert<?> isLong()
JsonValue
is a long.AbstractLongAssert
representation of this Assert instance.public org.assertj.core.api.AbstractDoubleAssert<?> isDouble()
JsonValue
is a long.AbstractDoubleAssert
representation of this Assert instance.public T isEmpty()
public AssertJJsonValueAssert.ObjectJsonValueAssert hasObject(String path)
JsonValue
is an object.path
- The JsonPointer
path to the expected value.AssertJJsonValueAssert.ObjectJsonValueAssert
for that node.public AssertJJsonValueAssert.ArrayJsonValueAssert hasArray(String path)
JsonValue
is an array.path
- The JsonPointer
path to the expected value.AssertJJsonValueAssert.ArrayJsonValueAssert
for that node.public T hasNull(String path)
JsonValue
is null.path
- The JsonPointer
path to the expected null.public T doesNotContain(String path)
JsonValue
doesn't exist in this object.path
- The JsonPointer
path.public T booleanIs(String path, org.assertj.core.api.Condition<Boolean> condition)
JsonValue
is a boolean.path
- The JsonPointer
path to the expected value.condition
- What condition you expect the value to match.public T hasBoolean(String path)
JsonValue
is a boolean, irrespective of its value.path
- The JsonPointer
path to the expected value.public org.assertj.core.api.AbstractBooleanAssert<?> booleanAt(String path)
AbstractBooleanAssert
for the referenced JsonValue
is a boolean, to check its value.path
- The JsonPointer
path to the expected value.AbstractBooleanAssert
instance.public T hasString(String path)
JsonValue
is a string, irrespective of its value.path
- The JsonPointer
path to the expected value.public T stringIs(String path, org.assertj.core.api.Condition<String> condition)
JsonValue
string.path
- The JsonPointer
path to the expected value.condition
- What condition you expect the value to match.public org.assertj.core.api.AbstractCharSequenceAssert<?,String> stringAt(String path)
AbstractCharSequenceAssert
for the referenced JsonValue
is a string, to check its
value.path
- The JsonPointer
path to the expected value.AbstractCharSequenceAssert
instance.public T hasNumber(String path)
JsonValue
is a number, irrespective of its value.path
- The JsonPointer
path to the expected value.public T integerIs(String path, org.assertj.core.api.Condition<Integer> condition)
JsonValue
.path
- The JsonPointer
path to the expected value.condition
- What condition you expect the value to match.public org.assertj.core.api.AbstractIntegerAssert<?> integerAt(String path)
AbstractIntegerAssert
for the referenced JsonValue
is an integer, to check its value.path
- The JsonPointer
path to the expected value.AbstractIntegerAssert
instance.public T longIs(String path, org.assertj.core.api.Condition<Long> condition)
JsonValue
.path
- The JsonPointer
path to the expected value.condition
- What condition you expect the value to match.public org.assertj.core.api.AbstractLongAssert<?> longAt(String path)
AbstractLongAssert
for the referenced JsonValue
is a long, to check its value.path
- The JsonPointer
path to the expected value.AbstractLongAssert
instance.public T doubleIs(String path, org.assertj.core.api.Condition<Double> condition)
JsonValue
.path
- The JsonPointer
path to the expected value.condition
- What condition you expect the value to match.public org.assertj.core.api.AbstractDoubleAssert<?> doubleAt(String path)
AbstractDoubleAssert
for the referenced JsonValue
is a double, to check its value.path
- The JsonPointer
path to the expected value.AbstractDoubleAssert
instance.public void isNull()
public T isNotNull()
public AssertJJsonValueAssert.AbstractJsonValueAssert hasPath(String path)
AssertJJsonValueAssert.AbstractJsonValueAssert
for the referenced JsonValue
. It will fail if the path does
not match any valid JsonValue
.path
- The JsonPointer
path to the expected value.AssertJJsonValueAssert.AbstractJsonValueAssert
instance built around the found child.Copyright © 2025 Open Identity Platform Community. All rights reserved.