Package system

Class Gassert

java.lang.Object
system.Gassert

public class Gassert extends Object
Assertions main class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • verifyJsonElement

      public static void verifyJsonElement(com.google.gson.JsonObject json, String key)
      Verify that JsonObject contains JsonElement found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonElement key value
    • verifyJsonElement

      public static void verifyJsonElement(com.google.gson.JsonObject json, String key, String message)
      Verify that JsonObject contains JsonElement found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonElement key value
      message - 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 JsonObject
      key - expected JsonElement key value
      value - 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 JsonObject
      key - expected JsonElement key value
      value - expected JsonElement value
      message - custom error message
    • verifyJsonNull

      public static void verifyJsonNull(com.google.gson.JsonElement element)
      Verify that JsonElement is JsonNull.
      Parameters:
      element - verifiable JsonElement
    • verifyJsonNull

      public static void verifyJsonNull(com.google.gson.JsonElement element, String message)
      Verify that JsonElement is JsonNull.
      Parameters:
      element - verifiable JsonElement
      message - custom error message
    • verifyJsonNull

      public static void verifyJsonNull(com.google.gson.JsonObject json, String key)
      Verify that JsonObject contains JsonNull found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonNull key value
    • verifyJsonNull

      public static void verifyJsonNull(com.google.gson.JsonObject json, String key, String message)
      Verify that JsonObject contains JsonNull found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonNull key value
      message - custom error message
    • verifyJsonObject

      public static void verifyJsonObject(com.google.gson.JsonElement element)
      Verify that JsonElement is JsonObject.
      Parameters:
      element - verifiable JsonElement
    • verifyJsonObject

      public static void verifyJsonObject(com.google.gson.JsonElement element, String message)
      Verify that JsonElement is JsonObject.
      Parameters:
      element - verifiable JsonElement
      message - 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 JsonElement
      value - 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 JsonElement
      value - expected JsonObject value
      message - custom error message
    • verifyJsonObject

      public static void verifyJsonObject(com.google.gson.JsonObject json, String key)
      Verify that JsonObject contains JsonObject found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
    • verifyJsonObject

      public static void verifyJsonObject(com.google.gson.JsonObject json, String key, String message)
      Verify that JsonObject contains JsonObject found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      message - 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 JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected JsonObject value
      message - custom error message
    • verifyJsonObject

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      size - 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 JsonObject
      key - expected JsonObject key value
      size - expected JsonObject size
      message - custom error message
    • verifyJsonPrimitive

      public static void verifyJsonPrimitive(com.google.gson.JsonElement element)
      Verify that JsonElement is JsonPrimitive.
      Parameters:
      element - verifiable JsonElement
    • verifyJsonPrimitive

      public static void verifyJsonPrimitive(com.google.gson.JsonElement element, String message)
      Verify that JsonElement is JsonPrimitive.
      Parameters:
      element - verifiable JsonElement
      message - 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 JsonElement
      value - 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 JsonElement
      value - expected JsonPrimitive value
      message - custom error message
    • verifyJsonPrimitive

      public static void verifyJsonPrimitive(com.google.gson.JsonObject json, String key)
      Verify that JsonObject contains JsonPrimitive found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
    • verifyJsonPrimitive

      public static void verifyJsonPrimitive(com.google.gson.JsonObject json, String key, String message)
      Verify that JsonObject contains JsonPrimitive found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      message - 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 JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected JsonPrimitive value
      message - custom error message
    • verifyNumber

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - expected Number value
    • verifyBigInteger

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - expected BigInteger value
    • verifyLong

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected long value
      message - custom error message
    • verifyInteger

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected int value
      message - custom error message
    • verifyShort

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - expected short value
    • verifyByte

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - expected byte value
    • verifyBigDecimal

      public static 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected BigDecimal value
      message - custom error message
    • verifyDouble

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected int value
      message - custom error message
    • verifyFloat

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - expected float value
    • verifyString

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected String value
      message - custom error message
    • verifyStringContains

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected contained String value
      message - custom error message
    • verifyBoolean

      public 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.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected boolean value
      message - custom error message
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonElement element)
      Verify that JsonElement is JsonArray.
      Parameters:
      element - verifiable JsonElement
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonElement element, String message)
      Verify that JsonElement is JsonArray.
      Parameters:
      element - verifiable JsonElement
      message - custom error message
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonElement element, int size)
      Verify that JsonElement is JsonArray.
      Parameters:
      element - verifiable JsonElement
      size - expected JsonObject size
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonElement element, int size, String message)
      Verify that JsonElement is JsonArray.
      Parameters:
      element - verifiable JsonElement
      size - expected JsonObject size
      message - 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 JsonElement
      value - 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 JsonElement
      value - expected JsonArray value
      message - custom error message
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonObject json, String key)
      Verify that JsonObject contains JsonArray found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonObject json, String key, String message)
      Verify that JsonObject contains JsonArray found by key.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      message - 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 JsonObject
      key - expected JsonObject key value
      value - 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 JsonObject
      key - expected JsonObject key value
      value - expected JsonArray value
      message - custom error message
    • verifyJsonArray

      public static void verifyJsonArray(com.google.gson.JsonObject json, String key, int size)
      Verify that JsonObject contains JsonArray found by key and it's size.
      Parameters:
      json - verifiable JsonObject
      key - expected JsonObject key value
      size - 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 JsonObject
      key - expected JsonObject key value
      size - expected JsonObject size
      message - 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

      public static void verifyJsonObjectsInJsonArray(com.google.gson.JsonArray array, String message)
      Verify that JsonArray contains only JsonObject type elements.
      Parameters:
      array - verifiable JsonArray
      message - 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 JsonArray
      value - 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 JsonArray
      value - expected JsonObject value
      index - 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 JsonArray
      value - expected JsonObject value
      index - expected JsonObject index
      message - 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

      public static void verifyJsonArraysInJsonArray(com.google.gson.JsonArray array, String message)
      Verify that JsonArray contains only JsonArray type elements.
      Parameters:
      array - verifiable JsonArray
      message - 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 JsonArray
      value - 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 JsonArray
      value - expected JsonArray value
      index - 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 JsonArray
      value - expected JsonArray value
      index - expected JsonArray index
      message - 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

      public static void verifyJsonPrimitivesInJsonArray(com.google.gson.JsonArray array, String message)
      Verify that JsonArray contains only JsonArray type elements.
      Parameters:
      array - verifiable JsonArray
      message - 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 JsonArray
      value - 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 JsonArray
      value - expected JsonPrimitive value
      message - 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 JsonArray
      value - expected JsonPrimitive value
      index - 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 JsonArray
      value - expected JsonPrimitive value
      index - expected JsonPrimitive index
      message - 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 JsonArray
      index - 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 JsonArray
      index - expected JsonNull index
      message - custom error message