Package org.forgerock.json.test.assertj
Class AssertJJsonValueAssert.AbstractJsonValueAssert<T extends org.assertj.core.api.AbstractAssert<T,JsonValue>>
java.lang.Object
org.assertj.core.api.AbstractAssert<T,JsonValue>
org.forgerock.json.test.assertj.AssertJJsonValueAssert.AbstractJsonValueAssert<T>
- Type Parameters:
T
- the assertion class
- All Implemented Interfaces:
org.assertj.core.api.Assert<T,
,JsonValue> org.assertj.core.api.Descriptable<T>
,org.assertj.core.api.ExtensionPoints<T,
JsonValue>
- Direct Known Subclasses:
AssertJJsonValueAssert.ArrayJsonValueAssert
,AssertJJsonValueAssert.JsonValueAssert
,AssertJJsonValueAssert.NumberJsonValueAssert
,AssertJJsonValueAssert.ObjectJsonValueAssert
,AssertJJsonValueAssert.PromisedJsonValueAssert
- Enclosing class:
- AssertJJsonValueAssert
public abstract static class AssertJJsonValueAssert.AbstractJsonValueAssert<T extends org.assertj.core.api.AbstractAssert<T,JsonValue>>
extends org.assertj.core.api.AbstractAssert<T,JsonValue>
Abstract class for assertions on
JsonValue
.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Method Summary
Modifier and TypeMethodDescriptionorg.assertj.core.api.AbstractBooleanAssert<?>
Get aAbstractBooleanAssert
for the referencedJsonValue
is a boolean, to check its value.Check that the referencedJsonValue
is a boolean.doesNotContain
(String path) Check that the referencedJsonValue
doesn't exist in this object.org.assertj.core.api.AbstractDoubleAssert<?>
Get aAbstractDoubleAssert
for the referencedJsonValue
is a double, to check its value.Check the double value of the referencedJsonValue
.Check that the referencedJsonValue
is an array.hasBoolean
(String path) Check that the referencedJsonValue
is a boolean, irrespective of its value.Check that the referencedJsonValue
is null.Check that the referencedJsonValue
is a number, irrespective of its value.Check that the referencedJsonValue
is an object.Get aAssertJJsonValueAssert.AbstractJsonValueAssert
for the referencedJsonValue
.Check that the referencedJsonValue
is a string, irrespective of its value.org.assertj.core.api.AbstractIntegerAssert<?>
Get aAbstractIntegerAssert
for the referencedJsonValue
is an integer, to check its value.Check the integer value of the referencedJsonValue
.isArray()
Check that theJsonValue
is an array.org.assertj.core.api.AbstractBooleanAssert<?>
Check that theJsonValue
is a boolean.org.assertj.core.api.AbstractDoubleAssert<?>
isDouble()
Check that theJsonValue
is a long.isEmpty()
Check that the JSON is either an array or an object and is empty.org.assertj.core.api.AbstractIntegerAssert<?>
Check that theJsonValue
is an integer.org.assertj.core.api.AbstractLongAssert<?>
isLong()
Check that theJsonValue
is a long.void
isNull()
isNumber()
Check that theJsonValue
is a number.isObject()
Check that theJsonValue
is an object.org.assertj.core.api.AbstractCharSequenceAssert<?,
String> isString()
Check that theJsonValue
is a string.org.assertj.core.api.AbstractLongAssert<?>
Get aAbstractLongAssert
for the referencedJsonValue
is a long, to check its value.Check the long value of the referencedJsonValue
.org.assertj.core.api.AbstractCharSequenceAssert<?,
String> Get aAbstractCharSequenceAssert
for the referencedJsonValue
is a string, to check its value.Check the value of the referencedJsonValue
string.Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Method Details
-
isObject
Check that theJsonValue
is an object.- Returns:
- The
AssertJJsonValueAssert.ObjectJsonValueAssert
representation of this Assert instance.
-
isArray
Check that theJsonValue
is an array.- Returns:
- The
AssertJJsonValueAssert.ArrayJsonValueAssert
representation of this Assert instance.
-
isString
Check that theJsonValue
is a string.- Returns:
- The
AbstractCharSequenceAssert
representation of this Assert instance.
-
isBoolean
Check that theJsonValue
is a boolean.- Returns:
- The
AbstractBooleanAssert
representation of this Assert instance.
-
isNumber
Check that theJsonValue
is a number.- Returns:
- The
AssertJJsonValueAssert.NumberJsonValueAssert
representation of this Assert instance.
-
isInteger
Check that theJsonValue
is an integer.- Returns:
- The
AbstractIntegerAssert
representation of this Assert instance.
-
isLong
Check that theJsonValue
is a long.- Returns:
- The
AbstractLongAssert
representation of this Assert instance.
-
isDouble
Check that theJsonValue
is a long.- Returns:
- The
AbstractDoubleAssert
representation of this Assert instance.
-
isEmpty
Check that the JSON is either an array or an object and is empty.- Returns:
- This assertion object.
-
hasObject
Check that the referencedJsonValue
is an object.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- The
AssertJJsonValueAssert.ObjectJsonValueAssert
for that node.
-
hasArray
Check that the referencedJsonValue
is an array.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- The
AssertJJsonValueAssert.ArrayJsonValueAssert
for that node.
-
hasNull
Check that the referencedJsonValue
is null.- Parameters:
path
- TheJsonPointer
path to the expected null.- Returns:
- This assert object, for further processing.
-
doesNotContain
Check that the referencedJsonValue
doesn't exist in this object.- Parameters:
path
- TheJsonPointer
path.- Returns:
- This assert object, for further processing.
-
booleanIs
Check that the referencedJsonValue
is a boolean.- Parameters:
path
- TheJsonPointer
path to the expected value.condition
- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
hasBoolean
Check that the referencedJsonValue
is a boolean, irrespective of its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This assert object, for further processing.
-
booleanAt
Get aAbstractBooleanAssert
for the referencedJsonValue
is a boolean, to check its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This
AbstractBooleanAssert
instance.
-
hasString
Check that the referencedJsonValue
is a string, irrespective of its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This assert object, for further processing.
-
stringIs
Check the value of the referencedJsonValue
string.- Parameters:
path
- TheJsonPointer
path to the expected value.condition
- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
stringAt
Get aAbstractCharSequenceAssert
for the referencedJsonValue
is a string, to check its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This
AbstractCharSequenceAssert
instance.
-
hasNumber
Check that the referencedJsonValue
is a number, irrespective of its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This assert object, for further processing.
-
integerIs
Check the integer value of the referencedJsonValue
.- Parameters:
path
- TheJsonPointer
path to the expected value.condition
- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
integerAt
Get aAbstractIntegerAssert
for the referencedJsonValue
is an integer, to check its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This
AbstractIntegerAssert
instance.
-
longIs
Check the long value of the referencedJsonValue
.- Parameters:
path
- TheJsonPointer
path to the expected value.condition
- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
longAt
Get aAbstractLongAssert
for the referencedJsonValue
is a long, to check its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This
AbstractLongAssert
instance.
-
doubleIs
Check the double value of the referencedJsonValue
.- Parameters:
path
- TheJsonPointer
path to the expected value.condition
- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
doubleAt
Get aAbstractDoubleAssert
for the referencedJsonValue
is a double, to check its value.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- This
AbstractDoubleAssert
instance.
-
isNull
-
isNotNull
-
hasPath
Get aAssertJJsonValueAssert.AbstractJsonValueAssert
for the referencedJsonValue
. It will fail if the path does not match any validJsonValue
.- Parameters:
path
- TheJsonPointer
path to the expected value.- Returns:
- A new
AssertJJsonValueAssert.AbstractJsonValueAssert
instance built around the found child.
-