Package system
Class Gassert
java.lang.Object
system.Gassert
Assertions main class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
verifyBigDecimal
(com.google.gson.JsonObject json, String key, BigDecimal value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific BigDecimal.static void
verifyBigDecimal
(com.google.gson.JsonObject json, String key, BigDecimal value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific BigDecimal.static void
verifyBigInteger
(com.google.gson.JsonObject json, String key, BigInteger value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific BigInteger.static void
verifyBoolean
(com.google.gson.JsonObject json, String key, boolean value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific boolean.static void
verifyBoolean
(com.google.gson.JsonObject json, String key, boolean value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific boolean.static void
verifyByte
(com.google.gson.JsonObject json, String key, byte value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific byte.static void
verifyDouble
(com.google.gson.JsonObject json, String key, double value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific double.static void
verifyDouble
(com.google.gson.JsonObject json, String key, double value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to int int.static void
verifyFloat
(com.google.gson.JsonObject json, String key, float value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific float.static void
verifyInteger
(com.google.gson.JsonObject json, String key, int value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific int.static void
verifyInteger
(com.google.gson.JsonObject json, String key, int value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to int int.static void
verifyJsonArray
(com.google.gson.JsonElement element) Verify that JsonElement is JsonArray.static void
verifyJsonArray
(com.google.gson.JsonElement element, int size) Verify that JsonElement is JsonArray.static void
verifyJsonArray
(com.google.gson.JsonElement element, int size, String message) Verify that JsonElement is JsonArray.static void
verifyJsonArray
(com.google.gson.JsonElement element, com.google.gson.JsonArray value) Verify that JsonElement value equals to specific JsonArray.static void
verifyJsonArray
(com.google.gson.JsonElement element, com.google.gson.JsonArray value, String message) Verify that JsonElement value equals to specific JsonArray.static void
verifyJsonArray
(com.google.gson.JsonElement element, String message) Verify that JsonElement is JsonArray.static void
verifyJsonArray
(com.google.gson.JsonObject json, String key) Verify that JsonObject contains JsonArray found by key.static void
verifyJsonArray
(com.google.gson.JsonObject json, String key, int size) Verify that JsonObject contains JsonArray found by key and it's size.static void
verifyJsonArray
(com.google.gson.JsonObject json, String key, int size, String message) Verify that JsonObject contains JsonArray found by key and it's size.static void
verifyJsonArray
(com.google.gson.JsonObject json, String key, com.google.gson.JsonArray value) Verify that JsonObject contains JsonArray found by key, and it's value equals to specific JsonArray.static void
verifyJsonArray
(com.google.gson.JsonObject json, String key, com.google.gson.JsonArray value, String message) Verify that JsonObject contains JsonArray found by key, and it's value equals to specific JsonArray.static void
verifyJsonArray
(com.google.gson.JsonObject json, String key, String message) Verify that JsonObject contains JsonArray found by key.static void
verifyJsonArrayInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonArray value) Verify that JsonArray contains specific JsonArray.static void
verifyJsonArrayInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonArray value, int index) Verify that JsonArray contains specific JsonArray on specific index.static void
verifyJsonArrayInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonArray value, int index, String message) Verify that JsonArray contains specific JsonArray on specific index.static void
verifyJsonArraysInJsonArray
(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonArray type elements.static void
verifyJsonArraysInJsonArray
(com.google.gson.JsonArray array, String message) Verify that JsonArray contains only JsonArray type elements.static void
verifyJsonElement
(com.google.gson.JsonObject json, String key) Verify that JsonObject contains JsonElement found by key.static void
verifyJsonElement
(com.google.gson.JsonObject json, String key, com.google.gson.JsonElement value) Verify that JsonObject contains JsonElement found by key, and it's value equals to specific JsonElement.static void
verifyJsonElement
(com.google.gson.JsonObject json, String key, com.google.gson.JsonElement value, String message) Verify that JsonObject contains JsonElement found by key, and it's value equals to specific JsonElement.static void
verifyJsonElement
(com.google.gson.JsonObject json, String key, String message) Verify that JsonObject contains JsonElement found by key.static void
verifyJsonNull
(com.google.gson.JsonElement element) Verify that JsonElement is JsonNull.static void
verifyJsonNull
(com.google.gson.JsonElement element, String message) Verify that JsonElement is JsonNull.static void
verifyJsonNull
(com.google.gson.JsonObject json, String key) Verify that JsonObject contains JsonNull found by key.static void
verifyJsonNull
(com.google.gson.JsonObject json, String key, String message) Verify that JsonObject contains JsonNull found by key.static void
verifyJsonNullInJsonArray
(com.google.gson.JsonArray array, int index) Verify that JsonArray contains specific JsonNull on specific index.static void
verifyJsonNullInJsonArray
(com.google.gson.JsonArray array, int index, String message) Verify that JsonArray contains specific JsonNull on specific index.static void
verifyJsonNullsInJsonArray
(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonNull type elements.static void
verifyJsonObject
(com.google.gson.JsonElement element) Verify that JsonElement is JsonObject.static void
verifyJsonObject
(com.google.gson.JsonElement element, com.google.gson.JsonObject value) Verify that JsonElement value equals to specific JsonObject.static void
verifyJsonObject
(com.google.gson.JsonElement element, com.google.gson.JsonObject value, String message) Verify that JsonElement value equals to specific JsonObject.static void
verifyJsonObject
(com.google.gson.JsonElement element, String message) Verify that JsonElement is JsonObject.static void
verifyJsonObject
(com.google.gson.JsonObject json, String key) Verify that JsonObject contains JsonObject found by key.static void
verifyJsonObject
(com.google.gson.JsonObject json, String key, int size) Verify that JsonObject contains JsonObject found by key, and it's size equals to expected.static void
verifyJsonObject
(com.google.gson.JsonObject json, String key, int size, String message) Verify that JsonObject contains JsonObject found by key, and it's size equals to expected.static void
verifyJsonObject
(com.google.gson.JsonObject json, String key, com.google.gson.JsonObject value) Verify that JsonObject contains JsonObject found by key, and it's value equals to specific JsonObject.static void
verifyJsonObject
(com.google.gson.JsonObject json, String key, com.google.gson.JsonObject value, String message) Verify that JsonObject contains JsonObject found by key, and it's value equals to specific JsonObject.static void
verifyJsonObject
(com.google.gson.JsonObject json, String key, String message) Verify that JsonObject contains JsonObject found by key.static void
verifyJsonObjectInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonObject value) Verify that JsonArray contains specific JsonObject.static void
verifyJsonObjectInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonObject value, int index) Verify that JsonArray contains specific JsonObject on specific index.static void
verifyJsonObjectInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonObject value, int index, String message) Verify that JsonArray contains specific JsonObject on specific index.static void
verifyJsonObjectsInJsonArray
(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonObject type elements.static void
verifyJsonObjectsInJsonArray
(com.google.gson.JsonArray array, String message) Verify that JsonArray contains only JsonObject type elements.static void
verifyJsonPrimitive
(com.google.gson.JsonElement element) Verify that JsonElement is JsonPrimitive.static void
verifyJsonPrimitive
(com.google.gson.JsonElement element, com.google.gson.JsonPrimitive value) Verify that JsonElement value equals to specific JsonPrimitive.static void
verifyJsonPrimitive
(com.google.gson.JsonElement element, com.google.gson.JsonPrimitive value, String message) Verify that JsonElement value equals to specific JsonPrimitive.static void
verifyJsonPrimitive
(com.google.gson.JsonElement element, String message) Verify that JsonElement is JsonPrimitive.static void
verifyJsonPrimitive
(com.google.gson.JsonObject json, String key) Verify that JsonObject contains JsonPrimitive found by key.static void
verifyJsonPrimitive
(com.google.gson.JsonObject json, String key, com.google.gson.JsonPrimitive value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific JsonPrimitive.static void
verifyJsonPrimitive
(com.google.gson.JsonObject json, String key, com.google.gson.JsonPrimitive value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific JsonPrimitive.static void
verifyJsonPrimitive
(com.google.gson.JsonObject json, String key, String message) Verify that JsonObject contains JsonPrimitive found by key.static void
verifyJsonPrimitiveInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value) Verify that JsonArray contains specific JsonPrimitive.static void
verifyJsonPrimitiveInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value, int index) Verify that JsonArray contains specific JsonPrimitive on specific index.static void
verifyJsonPrimitiveInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value, int index, String message) Verify that JsonArray contains specific JsonPrimitive on specific index.static void
verifyJsonPrimitiveInJsonArray
(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value, String message) Verify that JsonArray contains specific JsonPrimitive.static void
verifyJsonPrimitivesInJsonArray
(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonArray type elements.static void
verifyJsonPrimitivesInJsonArray
(com.google.gson.JsonArray array, String message) Verify that JsonArray contains only JsonArray type elements.static void
verifyLong
(com.google.gson.JsonObject json, String key, long value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific long.static void
verifyLong
(com.google.gson.JsonObject json, String key, long value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific long.static void
verifyNumber
(com.google.gson.JsonObject json, String key, Number value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific Number.static void
verifyShort
(com.google.gson.JsonObject json, String key, short value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific short.static void
verifyString
(com.google.gson.JsonObject json, String key, String value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific String.static void
verifyString
(com.google.gson.JsonObject json, String key, String value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific String.static void
verifyStringContains
(com.google.gson.JsonObject json, String key, String value) Verify that JsonObject contains JsonPrimitive found by key, and it's value contains specific String.static void
verifyStringContains
(com.google.gson.JsonObject json, String key, String value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value contains specific String.
-
Method Details
-
verifyJsonElement
Verify that JsonObject contains JsonElement found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonElement key value
-
verifyJsonElement
Verify that JsonObject contains JsonElement found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonElement key valuemessage
- custom error message
-
verifyJsonElement
public static void verifyJsonElement(com.google.gson.JsonObject json, String key, com.google.gson.JsonElement value) Verify that JsonObject contains JsonElement found by key, and it's value equals to specific JsonElement.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonElement key valuevalue
- expected JsonElement value
-
verifyJsonElement
public static void verifyJsonElement(com.google.gson.JsonObject json, String key, com.google.gson.JsonElement value, String message) Verify that JsonObject contains JsonElement found by key, and it's value equals to specific JsonElement.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonElement key valuevalue
- expected JsonElement valuemessage
- custom error message
-
verifyJsonNull
public static void verifyJsonNull(com.google.gson.JsonElement element) Verify that JsonElement is JsonNull.- Parameters:
element
- verifiable JsonElement
-
verifyJsonNull
Verify that JsonElement is JsonNull.- Parameters:
element
- verifiable JsonElementmessage
- custom error message
-
verifyJsonNull
Verify that JsonObject contains JsonNull found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonNull key value
-
verifyJsonNull
Verify that JsonObject contains JsonNull found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonNull key valuemessage
- custom error message
-
verifyJsonObject
public static void verifyJsonObject(com.google.gson.JsonElement element) Verify that JsonElement is JsonObject.- Parameters:
element
- verifiable JsonElement
-
verifyJsonObject
Verify that JsonElement is JsonObject.- Parameters:
element
- verifiable JsonElementmessage
- custom error message
-
verifyJsonObject
public static void verifyJsonObject(com.google.gson.JsonElement element, com.google.gson.JsonObject value) Verify that JsonElement value equals to specific JsonObject.- Parameters:
element
- verifiable JsonElementvalue
- expected JsonObject value
-
verifyJsonObject
public static void verifyJsonObject(com.google.gson.JsonElement element, com.google.gson.JsonObject value, String message) Verify that JsonElement value equals to specific JsonObject.- Parameters:
element
- verifiable JsonElementvalue
- expected JsonObject valuemessage
- custom error message
-
verifyJsonObject
Verify that JsonObject contains JsonObject found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key value
-
verifyJsonObject
Verify that JsonObject contains JsonObject found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuemessage
- custom error message
-
verifyJsonObject
public static void verifyJsonObject(com.google.gson.JsonObject json, String key, com.google.gson.JsonObject value) Verify that JsonObject contains JsonObject found by key, and it's value equals to specific JsonObject.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected JsonObject value
-
verifyJsonObject
public static void verifyJsonObject(com.google.gson.JsonObject json, String key, com.google.gson.JsonObject value, String message) Verify that JsonObject contains JsonObject found by key, and it's value equals to specific JsonObject.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected JsonObject valuemessage
- custom error message
-
verifyJsonObject
Verify that JsonObject contains JsonObject found by key, and it's size equals to expected.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuesize
- expected JsonObject size
-
verifyJsonObject
public static void verifyJsonObject(com.google.gson.JsonObject json, String key, int size, String message) Verify that JsonObject contains JsonObject found by key, and it's size equals to expected.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuesize
- expected JsonObject sizemessage
- custom error message
-
verifyJsonPrimitive
public static void verifyJsonPrimitive(com.google.gson.JsonElement element) Verify that JsonElement is JsonPrimitive.- Parameters:
element
- verifiable JsonElement
-
verifyJsonPrimitive
Verify that JsonElement is JsonPrimitive.- Parameters:
element
- verifiable JsonElementmessage
- custom error message
-
verifyJsonPrimitive
public static void verifyJsonPrimitive(com.google.gson.JsonElement element, com.google.gson.JsonPrimitive value) Verify that JsonElement value equals to specific JsonPrimitive.- Parameters:
element
- verifiable JsonElementvalue
- expected JsonPrimitive value
-
verifyJsonPrimitive
public static void verifyJsonPrimitive(com.google.gson.JsonElement element, com.google.gson.JsonPrimitive value, String message) Verify that JsonElement value equals to specific JsonPrimitive.- Parameters:
element
- verifiable JsonElementvalue
- expected JsonPrimitive valuemessage
- custom error message
-
verifyJsonPrimitive
Verify that JsonObject contains JsonPrimitive found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key value
-
verifyJsonPrimitive
Verify that JsonObject contains JsonPrimitive found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuemessage
- custom error message
-
verifyJsonPrimitive
public static void verifyJsonPrimitive(com.google.gson.JsonObject json, String key, com.google.gson.JsonPrimitive value) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific JsonPrimitive.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected JsonPrimitive value
-
verifyJsonPrimitive
public static void verifyJsonPrimitive(com.google.gson.JsonObject json, String key, com.google.gson.JsonPrimitive value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific JsonPrimitive.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected JsonPrimitive valuemessage
- custom error message
-
verifyNumber
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific Number.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected Number value
-
verifyBigInteger
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific BigInteger.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected BigInteger value
-
verifyLong
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific long.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected long value
-
verifyLong
public static void verifyLong(com.google.gson.JsonObject json, String key, long value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific long.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected long valuemessage
- custom error message
-
verifyInteger
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific int.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected int value
-
verifyInteger
public static void verifyInteger(com.google.gson.JsonObject json, String key, int value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to int int.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected int valuemessage
- custom error message
-
verifyShort
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific short.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected short value
-
verifyByte
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific byte.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected byte value
-
verifyBigDecimal
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific BigDecimal.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected BigDecimal value
-
verifyBigDecimal
public static void verifyBigDecimal(com.google.gson.JsonObject json, String key, BigDecimal value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific BigDecimal.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected BigDecimal valuemessage
- custom error message
-
verifyDouble
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific double.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected double value
-
verifyDouble
public static void verifyDouble(com.google.gson.JsonObject json, String key, double value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to int int.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected int valuemessage
- custom error message
-
verifyFloat
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific float.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected float value
-
verifyString
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific String.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected String value
-
verifyString
public static void verifyString(com.google.gson.JsonObject json, String key, String value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific String.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected String valuemessage
- custom error message
-
verifyStringContains
Verify that JsonObject contains JsonPrimitive found by key, and it's value contains specific String.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected contained String value
-
verifyStringContains
public static void verifyStringContains(com.google.gson.JsonObject json, String key, String value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value contains specific String.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected contained String valuemessage
- custom error message
-
verifyBoolean
Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific boolean.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected boolean value
-
verifyBoolean
public static void verifyBoolean(com.google.gson.JsonObject json, String key, boolean value, String message) Verify that JsonObject contains JsonPrimitive found by key, and it's value equals to specific boolean.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected boolean valuemessage
- custom error message
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonElement element) Verify that JsonElement is JsonArray.- Parameters:
element
- verifiable JsonElement
-
verifyJsonArray
Verify that JsonElement is JsonArray.- Parameters:
element
- verifiable JsonElementmessage
- custom error message
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonElement element, int size) Verify that JsonElement is JsonArray.- Parameters:
element
- verifiable JsonElementsize
- expected JsonObject size
-
verifyJsonArray
Verify that JsonElement is JsonArray.- Parameters:
element
- verifiable JsonElementsize
- expected JsonObject sizemessage
- custom error message
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonElement element, com.google.gson.JsonArray value) Verify that JsonElement value equals to specific JsonArray.- Parameters:
element
- verifiable JsonElementvalue
- expected JsonArray value
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonElement element, com.google.gson.JsonArray value, String message) Verify that JsonElement value equals to specific JsonArray.- Parameters:
element
- verifiable JsonElementvalue
- expected JsonArray valuemessage
- custom error message
-
verifyJsonArray
Verify that JsonObject contains JsonArray found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key value
-
verifyJsonArray
Verify that JsonObject contains JsonArray found by key.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuemessage
- custom error message
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonObject json, String key, com.google.gson.JsonArray value) Verify that JsonObject contains JsonArray found by key, and it's value equals to specific JsonArray.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected JsonArray value
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonObject json, String key, com.google.gson.JsonArray value, String message) Verify that JsonObject contains JsonArray found by key, and it's value equals to specific JsonArray.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuevalue
- expected JsonArray valuemessage
- custom error message
-
verifyJsonArray
Verify that JsonObject contains JsonArray found by key and it's size.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuesize
- expected JsonObject size
-
verifyJsonArray
public static void verifyJsonArray(com.google.gson.JsonObject json, String key, int size, String message) Verify that JsonObject contains JsonArray found by key and it's size.- Parameters:
json
- verifiable JsonObjectkey
- expected JsonObject key valuesize
- expected JsonObject sizemessage
- custom error message
-
verifyJsonObjectsInJsonArray
public static void verifyJsonObjectsInJsonArray(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonObject type elements.- Parameters:
array
- verifiable JsonArray
-
verifyJsonObjectsInJsonArray
Verify that JsonArray contains only JsonObject type elements.- Parameters:
array
- verifiable JsonArraymessage
- custom error message
-
verifyJsonObjectInJsonArray
public static void verifyJsonObjectInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonObject value) Verify that JsonArray contains specific JsonObject.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonObject value
-
verifyJsonObjectInJsonArray
public static void verifyJsonObjectInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonObject value, int index) Verify that JsonArray contains specific JsonObject on specific index.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonObject valueindex
- expected JsonObject index
-
verifyJsonObjectInJsonArray
public static void verifyJsonObjectInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonObject value, int index, String message) Verify that JsonArray contains specific JsonObject on specific index.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonObject valueindex
- expected JsonObject indexmessage
- custom error message
-
verifyJsonArraysInJsonArray
public static void verifyJsonArraysInJsonArray(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonArray type elements.- Parameters:
array
- verifiable JsonArray
-
verifyJsonArraysInJsonArray
Verify that JsonArray contains only JsonArray type elements.- Parameters:
array
- verifiable JsonArraymessage
- custom error message
-
verifyJsonArrayInJsonArray
public static void verifyJsonArrayInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonArray value) Verify that JsonArray contains specific JsonArray.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonArray value
-
verifyJsonArrayInJsonArray
public static void verifyJsonArrayInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonArray value, int index) Verify that JsonArray contains specific JsonArray on specific index.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonArray valueindex
- expected JsonArray index
-
verifyJsonArrayInJsonArray
public static void verifyJsonArrayInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonArray value, int index, String message) Verify that JsonArray contains specific JsonArray on specific index.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonArray valueindex
- expected JsonArray indexmessage
- custom error message
-
verifyJsonPrimitivesInJsonArray
public static void verifyJsonPrimitivesInJsonArray(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonArray type elements.- Parameters:
array
- verifiable JsonArray
-
verifyJsonPrimitivesInJsonArray
Verify that JsonArray contains only JsonArray type elements.- Parameters:
array
- verifiable JsonArraymessage
- custom error message
-
verifyJsonPrimitiveInJsonArray
public static void verifyJsonPrimitiveInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value) Verify that JsonArray contains specific JsonPrimitive.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonPrimitive value
-
verifyJsonPrimitiveInJsonArray
public static void verifyJsonPrimitiveInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value, String message) Verify that JsonArray contains specific JsonPrimitive.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonPrimitive valuemessage
- custom error message
-
verifyJsonPrimitiveInJsonArray
public static void verifyJsonPrimitiveInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value, int index) Verify that JsonArray contains specific JsonPrimitive on specific index.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonPrimitive valueindex
- expected JsonPrimitive index
-
verifyJsonPrimitiveInJsonArray
public static void verifyJsonPrimitiveInJsonArray(com.google.gson.JsonArray array, com.google.gson.JsonPrimitive value, int index, String message) Verify that JsonArray contains specific JsonPrimitive on specific index.- Parameters:
array
- verifiable JsonArrayvalue
- expected JsonPrimitive valueindex
- expected JsonPrimitive indexmessage
- custom error message
-
verifyJsonNullsInJsonArray
public static void verifyJsonNullsInJsonArray(com.google.gson.JsonArray array) Verify that JsonArray contains only JsonNull type elements.- Parameters:
array
- verifiable JsonArray
-
verifyJsonNullInJsonArray
public static void verifyJsonNullInJsonArray(com.google.gson.JsonArray array, int index) Verify that JsonArray contains specific JsonNull on specific index.- Parameters:
array
- verifiable JsonArrayindex
- expected JsonNull index
-
verifyJsonNullInJsonArray
public static void verifyJsonNullInJsonArray(com.google.gson.JsonArray array, int index, String message) Verify that JsonArray contains specific JsonNull on specific index.- Parameters:
array
- verifiable JsonArrayindex
- expected JsonNull indexmessage
- custom error message
-