Package org.forgerock.json.test.assertj
Class AssertJJsonValueAssert.ArrayJsonValueAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<T,JsonValue>
org.forgerock.json.test.assertj.AssertJJsonValueAssert.AbstractJsonValueAssert<AssertJJsonValueAssert.ArrayJsonValueAssert>
org.forgerock.json.test.assertj.AssertJJsonValueAssert.ArrayJsonValueAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<AssertJJsonValueAssert.ArrayJsonValueAssert,
,JsonValue> org.assertj.core.api.Descriptable<AssertJJsonValueAssert.ArrayJsonValueAssert>
,org.assertj.core.api.ExtensionPoints<AssertJJsonValueAssert.ArrayJsonValueAssert,
JsonValue>
- Enclosing class:
- AssertJJsonValueAssert
public static final class AssertJJsonValueAssert.ArrayJsonValueAssert
extends AssertJJsonValueAssert.AbstractJsonValueAssert<AssertJJsonValueAssert.ArrayJsonValueAssert>
Class for assertions on array
JsonValue
.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Method Summary
Modifier and TypeMethodDescriptionCheck that this array contains the given values.containsExactly
(Object... values) Check that this array contains exactly the given values.containsOnly
(Object... values) Check that this array contains only the given values.containsSequence
(Object... values) Check that this array contains the given values as a sequence.doesNotContain
(Object... values) Check that this array does not contain the given values.Check that this array does not contain duplicates.Check that this array ends with the given values.hasSize
(int size) Check that this array contains the given size.isEmpty()
Check that the JSON is either an array or an object and is empty.startsWith
(Object... values) Check that this array starts with the given values.Methods inherited from class org.forgerock.json.test.assertj.AssertJJsonValueAssert.AbstractJsonValueAssert
booleanAt, booleanIs, doesNotContain, doubleAt, doubleIs, hasArray, hasBoolean, hasNull, hasNumber, hasObject, hasPath, hasString, integerAt, integerIs, isArray, isBoolean, isDouble, isInteger, isLong, isNotNull, isNull, isNumber, isObject, isString, longAt, longIs, stringAt, stringIs
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
-
isEmpty
Description copied from class:AssertJJsonValueAssert.AbstractJsonValueAssert
Check that the JSON is either an array or an object and is empty.- Overrides:
isEmpty
in classAssertJJsonValueAssert.AbstractJsonValueAssert<AssertJJsonValueAssert.ArrayJsonValueAssert>
- Returns:
- This assertion object.
-
contains
Check that this array contains the given values.- Parameters:
values
- The expected values.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractListAssert.contains(ELEMENT, org.assertj.core.data.Index)
-
containsExactly
Check that this array contains exactly the given values.- Parameters:
values
- The expected values.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.containsExactly(ELEMENT...)
-
containsSequence
Check that this array contains the given values as a sequence.- Parameters:
values
- The expected values.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.containsSequence(ELEMENT...)
-
containsOnly
Check that this array contains only the given values.- Parameters:
values
- The expected values.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.containsOnly(ELEMENT...)
-
doesNotContain
Check that this array does not contain the given values.- Parameters:
values
- The values expected to not be contained.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractListAssert.doesNotContain(ELEMENT, org.assertj.core.data.Index)
-
startsWith
Check that this array starts with the given values.- Parameters:
values
- The expected values.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.startsWith(ELEMENT...)
-
endsWith
Check that this array ends with the given values.- Parameters:
values
- The expected values.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.endsWith(ELEMENT, ELEMENT...)
-
doesNotHaveDuplicates
Check that this array does not contain duplicates.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.doesNotHaveDuplicates()
-
hasSize
Check that this array contains the given size.- Parameters:
size
- The expected size.- Returns:
- This assert instance for further processing (if required).
- See Also:
-
AbstractIterableAssert.hasSize(int)
-