Namespace: OpenEdge.Core.Assertion
Class
AssertJson
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object

Copyright (c) 2014 by Progress Software Corporation. All rights reserved.
File:AssertJson
Purpose:Assertions specific to JSON constructs
Author(s):pjudge
Created:Wed Nov 05 16:37:30 EST 2014




Method Summary
Options Name Purpose
HasProperty (JsonObject, character) /** Asserts that a Json object has a particularly-named property (of any type). @param JsonObject The JSON object being checked @param character The name of the property being checked @throws AssertionFailedError Error thrown if the property does not exist */
PropertyIsNull (JsonObject, character) /** Asserts that a the value of a property is null @param JsonObject The JSON object being checked @param character The name of the property being checked @throws AssertionFailedError Error thrown if the property does not exist */
PropertyIsType (JsonObject, character, JsonDataTypeEnum) /** Asserts that a JSON Object has a particularly-named property of a particular type. @param JsonObject The JSON object being checked @param character The name of the property being checked @param JsonDataTypeEnum The data type being checked @throws AssertionFailedError Error thrown if the property does not exist */
PropertyNotNull (JsonObject, character) /** Asserts that a the value of a property is not null @param JsonObject The JSON object being checked @param character The name of the property being checked @throws AssertionFailedError Error thrown if the property does not exist */


Method Detail
Top

HasProperty (JsonObject, character)

Purpose: Asserts that a Json object has a particularly-named property (of any type).
@throws AssertionFailedError Error thrown if the property does not exist
Parameters:
poObject Progress.Json.ObjectModel.JsonObject
pcName CHARACTER
Top

PropertyIsNull (JsonObject, character)

Purpose: Asserts that a the value of a property is null
@throws AssertionFailedError Error thrown if the property does not exist
Parameters:
poObject Progress.Json.ObjectModel.JsonObject
pcName CHARACTER
Top

PropertyIsType (JsonObject, character, JsonDataTypeEnum)

Purpose: Asserts that a JSON Object has a particularly-named property of a
particular type.
@throws AssertionFailedError Error thrown if the property does not exist
Parameters:
poObject Progress.Json.ObjectModel.JsonObject
pcName CHARACTER
poPropertyType OpenEdge.Core.JsonDataTypeEnum
Top

PropertyNotNull (JsonObject, character)

Purpose: Asserts that a the value of a property is not null
@throws AssertionFailedError Error thrown if the property does not exist
Parameters:
poObject Progress.Json.ObjectModel.JsonObject
pcName CHARACTER


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7