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 aAbstractBooleanAssertfor the referencedJsonValueis a boolean, to check its value.Check that the referencedJsonValueis a boolean.doesNotContain(String path) Check that the referencedJsonValuedoesn't exist in this object.org.assertj.core.api.AbstractDoubleAssert<?>Get aAbstractDoubleAssertfor the referencedJsonValueis a double, to check its value.Check the double value of the referencedJsonValue.Check that the referencedJsonValueis an array.hasBoolean(String path) Check that the referencedJsonValueis a boolean, irrespective of its value.Check that the referencedJsonValueis null.Check that the referencedJsonValueis a number, irrespective of its value.Check that the referencedJsonValueis an object.Get aAssertJJsonValueAssert.AbstractJsonValueAssertfor the referencedJsonValue.Check that the referencedJsonValueis a string, irrespective of its value.org.assertj.core.api.AbstractIntegerAssert<?>Get aAbstractIntegerAssertfor the referencedJsonValueis an integer, to check its value.Check the integer value of the referencedJsonValue.isArray()Check that theJsonValueis an array.org.assertj.core.api.AbstractBooleanAssert<?>Check that theJsonValueis a boolean.org.assertj.core.api.AbstractDoubleAssert<?>isDouble()Check that theJsonValueis a long.isEmpty()Check that the JSON is either an array or an object and is empty.org.assertj.core.api.AbstractIntegerAssert<?>Check that theJsonValueis an integer.org.assertj.core.api.AbstractLongAssert<?>isLong()Check that theJsonValueis a long.voidisNull()isNumber()Check that theJsonValueis a number.isObject()Check that theJsonValueis an object.org.assertj.core.api.AbstractCharSequenceAssert<?,String> isString()Check that theJsonValueis a string.org.assertj.core.api.AbstractLongAssert<?>Get aAbstractLongAssertfor the referencedJsonValueis a long, to check its value.Check the long value of the referencedJsonValue.org.assertj.core.api.AbstractCharSequenceAssert<?,String> Get aAbstractCharSequenceAssertfor the referencedJsonValueis a string, to check its value.Check the value of the referencedJsonValuestring.Methods inherited from class org.assertj.core.api.AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Method Details
-
isObject
Check that theJsonValueis an object.- Returns:
- The
AssertJJsonValueAssert.ObjectJsonValueAssertrepresentation of this Assert instance.
-
isArray
Check that theJsonValueis an array.- Returns:
- The
AssertJJsonValueAssert.ArrayJsonValueAssertrepresentation of this Assert instance.
-
isString
Check that theJsonValueis a string.- Returns:
- The
AbstractCharSequenceAssertrepresentation of this Assert instance.
-
isBoolean
Check that theJsonValueis a boolean.- Returns:
- The
AbstractBooleanAssertrepresentation of this Assert instance.
-
isNumber
Check that theJsonValueis a number.- Returns:
- The
AssertJJsonValueAssert.NumberJsonValueAssertrepresentation of this Assert instance.
-
isInteger
Check that theJsonValueis an integer.- Returns:
- The
AbstractIntegerAssertrepresentation of this Assert instance.
-
isLong
Check that theJsonValueis a long.- Returns:
- The
AbstractLongAssertrepresentation of this Assert instance.
-
isDouble
Check that theJsonValueis a long.- Returns:
- The
AbstractDoubleAssertrepresentation 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 referencedJsonValueis an object.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- The
AssertJJsonValueAssert.ObjectJsonValueAssertfor that node.
-
hasArray
Check that the referencedJsonValueis an array.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- The
AssertJJsonValueAssert.ArrayJsonValueAssertfor that node.
-
hasNull
Check that the referencedJsonValueis null.- Parameters:
path- TheJsonPointerpath to the expected null.- Returns:
- This assert object, for further processing.
-
doesNotContain
Check that the referencedJsonValuedoesn't exist in this object.- Parameters:
path- TheJsonPointerpath.- Returns:
- This assert object, for further processing.
-
booleanIs
Check that the referencedJsonValueis a boolean.- Parameters:
path- TheJsonPointerpath to the expected value.condition- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
hasBoolean
Check that the referencedJsonValueis a boolean, irrespective of its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This assert object, for further processing.
-
booleanAt
Get aAbstractBooleanAssertfor the referencedJsonValueis a boolean, to check its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This
AbstractBooleanAssertinstance.
-
hasString
Check that the referencedJsonValueis a string, irrespective of its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This assert object, for further processing.
-
stringIs
Check the value of the referencedJsonValuestring.- Parameters:
path- TheJsonPointerpath to the expected value.condition- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
stringAt
Get aAbstractCharSequenceAssertfor the referencedJsonValueis a string, to check its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This
AbstractCharSequenceAssertinstance.
-
hasNumber
Check that the referencedJsonValueis a number, irrespective of its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This assert object, for further processing.
-
integerIs
Check the integer value of the referencedJsonValue.- Parameters:
path- TheJsonPointerpath to the expected value.condition- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
integerAt
Get aAbstractIntegerAssertfor the referencedJsonValueis an integer, to check its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This
AbstractIntegerAssertinstance.
-
longIs
Check the long value of the referencedJsonValue.- Parameters:
path- TheJsonPointerpath to the expected value.condition- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
longAt
Get aAbstractLongAssertfor the referencedJsonValueis a long, to check its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This
AbstractLongAssertinstance.
-
doubleIs
Check the double value of the referencedJsonValue.- Parameters:
path- TheJsonPointerpath to the expected value.condition- What condition you expect the value to match.- Returns:
- This assert object, for further processing.
-
doubleAt
Get aAbstractDoubleAssertfor the referencedJsonValueis a double, to check its value.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- This
AbstractDoubleAssertinstance.
-
isNull
-
isNotNull
-
hasPath
Get aAssertJJsonValueAssert.AbstractJsonValueAssertfor the referencedJsonValue. It will fail if the path does not match any validJsonValue.- Parameters:
path- TheJsonPointerpath to the expected value.- Returns:
- A new
AssertJJsonValueAssert.AbstractJsonValueAssertinstance built around the found child.
-