public class AssertJson extends AbstractAssert
DEFAULT_ARGUMENT_NAME| Constructor and Description |
|---|
AssertJson() |
| Modifier and Type | Method and Description |
|---|---|
void |
__core_assertion_AssertJson_constructor__() |
static void |
__core_assertion_AssertJson_constructor__static__()
Static constructor
|
private static void |
call(java.lang.String legacyName,
Body body)
Implementation helper for all test methods.
|
private static void |
checkJson(object<? extends JsonObject> json)
Check that the JSON object is known
|
private static void |
checkJsonArray(object<? extends JsonArray> json)
Check that a JSON array object is known.
|
private static void |
checkJsonArrayAndIndex(object<? extends JsonArray> json,
integer index)
Check that an array is valid and an array index is in range.
|
static void |
hasProperty(object<? extends JsonObject> json,
character name)
Assert that a Json object has a particularly-named property (of any type).
|
static void |
hasPropertyCount(object<? extends JsonObject> json,
integer nProperties)
Assert that a JSON object has a given number of properties.
|
static void |
indexIsNull(object<? extends JsonArray> json,
integer index)
Assert that an array element at the given index is null
|
static void |
indexIsType(object<? extends JsonArray> json,
integer index,
object<? extends JsonDataTypeEnum> type)
Assert that the JSON Array element at the given index is of a particular type.
|
static void |
indexNotNull(object<? extends JsonArray> json,
integer index)
Assert that an array element at the given index is not null
|
static void |
propertyIsNull(object<? extends JsonObject> json,
character name)
Assert that a the value of a property is null.
|
static void |
propertyIsType(object<? extends JsonObject> json,
character name,
object<? extends JsonDataTypeEnum> type)
Assert that a JSON Object has a particularly-named property of a particular type.
|
static void |
propertyNotNull(object<? extends JsonObject> json,
character name)
Assert that a the value of a property is not null
|
__core_AbstractAssert_constructor__, __core_AbstractAssert_constructor__static__, __core_AbstractAssert_execute__, call, equalsImpl, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtent, hasDeterminateExtentImpl, isAbstract, isAvailableImpl, isFinal, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isIndeterminateArray, isInterface, isNull, isNull, isNull, isNull, isNullImpl, isNullImpl, isSerializable, isType, isType, isType, isType, isTypeImpl, isUnknown_, isUnknown_, isUnknown_, isUnknown_, isUnknownImpl, isUnknownImpl, legacyEquals, notAbstract, notEmptyImpl, notEqual, notFinal, notInterface, notNull, notNull, notNull, notNull, notNullImpl, notNullImpl, notNullImpl, notNullUnknownOrEmptyImpl, notSerializable, notType, notType, notType, notTypeImpl, notUnknown, notUnknown, notUnknown, notUnknown, notUnknownImpl, notUnknownImpl, notUnknownOrEmptyCollection, notUnknownOrEmptyCollection, notUnknownOrEmptyImpl, notUnknownOrEmptyMap, notUnknownOrEmptyMap, notUnknownOrEmptyObject, notUnknownOrEmptyObject, raiseError, raiseError, raiseError, raiseErrorForEquals, raiseNotUnknown, raiseUnknown, testClass__isValidInternal__, __lang_BaseObject_constructor__, __setValidInternal__, assertNotNull, assertNotNull, getLegacyClass, getNextSibling, getPrevSibling, legacyClone, legacyEquals, toLegacyStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTrackedpublic static void __core_assertion_AssertJson_constructor__static__()
public static void hasProperty(object<? extends JsonObject> json, character name)
json - The JSON object being checkedname - The name of the property being checkedpublic static void hasPropertyCount(object<? extends JsonObject> json, integer nProperties)
json - The JSON object being checkednProperties - The expected number of propertiespublic static void indexIsNull(object<? extends JsonArray> json, integer index)
json - The JSON array being checkedindex - The array index being checkedpublic static void indexIsType(object<? extends JsonArray> json, integer index, object<? extends JsonDataTypeEnum> type)
json - The JSON array being checkedindex - The array index being checkedtype - The JSON data typepublic static void indexNotNull(object<? extends JsonArray> json, integer index)
json - The JSON array being checkedindex - The array index being checkedpublic static void propertyIsNull(object<? extends JsonObject> json, character name)
json - The JSON object being checkedname - The name of the property being checkedpublic static void propertyIsType(object<? extends JsonObject> json, character name, object<? extends JsonDataTypeEnum> type)
json - The JSON object being checkedname - The name of the property being checkedtype - The JSON data typepublic static void propertyNotNull(object<? extends JsonObject> json, character name)
json - The JSON object being checkedname - The name of the property being checkedprivate static void call(java.lang.String legacyName,
Body body)
legacyName - the legacy name of the methodbody - the method bodyprivate static void checkJson(object<? extends JsonObject> json)
json - the object to checkprivate static void checkJsonArray(object<? extends JsonArray> json)
json - the array to checkprivate static void checkJsonArrayAndIndex(object<? extends JsonArray> json, integer index)
json - the array to checkindex - the index to checkpublic void __core_assertion_AssertJson_constructor__()