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

Copyright (c) 2014, 2016 by Progress Software Corporation. All rights reserved.
File:AssertObject
Purpose:Assertions specific to Object(s)
Author(s):psajja
Created:Tue Dec 16 12:28:50 IST 2014




Method Summary
Options Name Purpose
Equals (Object, Object) /** Asserts that two objects are equal. @param a expected value Object @param b the value of Object being expected @throws AssertionFailedError Error thrown if they are not equal*/
HasDeterminateExtent (Object[]) /** Asserts that the given object array has deterninate extent. @param poArgument the Object array to check @throws AssertionFailedError Error thrown if the object array extent is not determinate*/
HasDeterminateExtent (Object[], character) /** Asserts that the given object array has deterninate extent. @param poArgument the Object array to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if the object array extent is not determinate*/
IsAbstract (Class) /** Asserts that the given type is an abstract. @param poArgument the type to check @throws AssertionFailedError Error thrown if the type is not abstract*/
IsFinal (Class) /** Asserts that the given type is final. @param poArgument the type to check @throws AssertionFailedError Error thrown if the type is final*/
IsIndeterminateArray (Object[]) /** Asserts that the given object array has indeterninate extent. @param poArgument the Object array to check @throws AssertionFailedError Error thrown if the object array extent is determinate*/
IsIndeterminateArray (Object[], character) /** Asserts that the given object array has indeterninate extent. @param poArgument the Object array to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if the object array extent is determinate*/
IsInterface (Class) /** Asserts that the given type is an interface. @param poArgument the type to check @throws AssertionFailedError Error thrown if the type is not an interface*/
IsNull (Object) /** Asserts that the object is null. @param poArgument the Object to check @throws AssertionFailedError Error thrown if Object is not null*/
IsNull (Object, character) /** Asserts that the object is null. @param poArgument the Object to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if Object is not null*/
IsNull (Object[]) /** Asserts that the object array is null. @param poArgument the Object array to check @throws AssertionFailedError Error thrown if Object is not null*/
IsNull (Object[], character) /** Asserts that the object array is null. @param poArgument the Object array to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if Object is not null*/
IsSerializable (Object) /* Asserts that the given object can be serialized. @param Obejct The object to check. */
IsType (handle, DataTypeEnum) /** Asserts that a handle is valid and of a particular datatype @param phArgument The handle being checked. @param poCheckType The type the handle/variable being checked should be. @throws AssertionFailedError Error thrown if the handle is not valid or not of a particular datatype*/
IsType (handle, DataTypeEnum, character) /** Asserts that a handle is valid and of a particular datatype @param phArgument The handle being checked. @param poCheckType The type the handle/variable being checked should be. @param pcName The name of the variable/handle. @throws AssertionFailedError Error thrown if the handle is not valid or not of a particular datatype.*/
IsType (Object, Class) /** Asserts that a object is valid and of a particular type @param poArgument The Object being checked. @param poType The type the being checked. @throws AssertionFailedError Error thrown if the object is not valid and not of particular type.*/
IsType (Object[], Class) /** Asserts that a object extent is valid and of a particular type for each array item @param poArgument The Object being checked. @param poType The type the being checked. @throws AssertionFailedError Error thrown if the object array is not valid any of the array item is not of particular type.*/
NotAbstract (Class) /** Asserts that the given type is not an abstract. @param poArgument the type to check @throws AssertionFailedError Error thrown if the type is abstract*/
NotEqual (Object, Object) /** Asserts that two objects are not equal. @param a expected value Object @param b the value of Object being expected @throws AssertionFailedError Error thrown if they are equal*/
NotFinal (Class) /** Asserts that the given type is not final. @param poArgument the type to check @throws AssertionFailedError Error thrown if the type is final*/
NotInterface (Class) /** Asserts that the given type is not an interface. @param poArgument the type to check @throws AssertionFailedError Error thrown if the type is an interface*/
NotNull (Object) /** Asserts that the object is not null. @param poArgument the Object to check @throws AssertionFailedError Error thrown if Object is null*/
NotNull (Object, character) /** Asserts that the object is not null. @param poArgument the Object to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if Object is null*/
NotNull (Object[]) /** Asserts that the object array is not null. @param poArgument the Object array to check @throws AssertionFailedError Error thrown if Object is null*/
NotNull (Object[], character) /** Asserts that the object array is not null. @param poArgument the Object array to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if Object is null*/
NotNullOrEmpty (ICollection) /** Asserts that the given collection is not null or empty. @param poArgument the ICollection object to check @throws AssertionFailedError Error thrown if the collection object is null or empty*/
NotNullOrEmpty (ICollection, character) /** Asserts that the given collection is not null or empty. @param poArgument the ICollection object to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if the collection object is null or empty*/
NotNullOrEmpty (IMap) /** Asserts that the given map is not null or empty. @param poArgument the IMap object to check @throws AssertionFailedError Error thrown if the map object is null or empty*/
NotNullOrEmpty (IMap, character) /** Asserts that the given map is not null or empty. @param poArgument the IMap object to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if the map object is null or empty*/
NotNullOrEmpty (Object[]) /** Asserts that the given object array is not null or empty. @param poArgument the Object array to check @throws AssertionFailedError Error thrown if the object array is null or empty*/
NotNullOrEmpty (Object[], character) /** Asserts that the given object array is not null or empty. @param poArgument the Object array to check @param pcName the identifying name for the AssertionFailedError @throws AssertionFailedError Error thrown if the object array is null or empty*/
NotSerializable (Object) /* Asserts that the given object cannot be serialized. @param Obejct The object to check. */
NotType (handle, DataTypeEnum) /** Asserts that a handle is valid and not of a particular datatype @param phArgument The handle being checked. @param poCheckType The type the handle/variable being checked should be. @throws AssertionFailedError Error thrown if the handle is not valid or of a particular datatype*/
NotType (handle, DataTypeEnum, character) /** Asserts that a handle is valid and not of a particular datatype @param phArgument The handle being checked. @param poCheckType The type the handle/variable being checked should be. @param pcName the identifying name for the AssertionFailedError. @throws AssertionFailedError Error thrown if the handle is not valid or of a particular datatype*/
NotType (Object, Class) /** Asserts that a object is valid and not of a particular type @param poArgument The Object being checked. @param poType The type the being checked. @throws AssertionFailedError Error thrown if the object is not valid and of particular type.*/


Method Detail
Top

Equals (Object, Object)

Purpose: Asserts that two objects are equal.
@throws AssertionFailedError Error thrown if they are not equal
Parameters:
a Progress.Lang.Object
ram a expected value Object
b Progress.Lang.Object
the value of Object being expected
Top

HasDeterminateExtent (Object[])

Purpose: Asserts that the given object array has deterninate extent.
@throws AssertionFailedError Error thrown if the object array extent is not determinate
Parameters:
poArgument Progress.Lang.Object
the Object array to check
Top

HasDeterminateExtent (Object[], character)

Purpose: Asserts that the given object array has deterninate extent.
@throws AssertionFailedError Error thrown if the object array extent is not determinate
Parameters:
poArgument Progress.Lang.Object
the Object array to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

IsAbstract (Class)

Purpose: Asserts that the given type is an abstract.
@throws AssertionFailedError Error thrown if the type is not abstract
Parameters:
poArgument Progress.Lang.Class
the type to check
Top

IsFinal (Class)

Purpose: Asserts that the given type is final.
@throws AssertionFailedError Error thrown if the type is final
Parameters:
poArgument Progress.Lang.Class
the type to check
Top

IsIndeterminateArray (Object[])

Purpose: Asserts that the given object array has indeterninate extent.
@throws AssertionFailedError Error thrown if the object array extent is determinate
Parameters:
poArgument Progress.Lang.Object
the Object array to check
Top

IsIndeterminateArray (Object[], character)

Purpose: Asserts that the given object array has indeterninate extent.
@throws AssertionFailedError Error thrown if the object array extent is determinate
Parameters:
poArgument Progress.Lang.Object
the Object array to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

IsInterface (Class)

Purpose: Asserts that the given type is an interface.
@throws AssertionFailedError Error thrown if the type is not an interface
Parameters:
poArgument Progress.Lang.Class
the type to check
Top

IsNull (Object)

Purpose: Asserts that the object is null.
@throws AssertionFailedError Error thrown if Object is not null
Parameters:
poArgument Progress.Lang.Object
the Object to check
Top

IsNull (Object, character)

Purpose: Asserts that the object is null.
@throws AssertionFailedError Error thrown if Object is not null
Parameters:
poArgument Progress.Lang.Object
the Object to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

IsNull (Object[])

Purpose: Asserts that the object array is null.
@throws AssertionFailedError Error thrown if Object is not null
Parameters:
poArgument Progress.Lang.Object
the Object array to check
Top

IsNull (Object[], character)

Purpose: Asserts that the object array is null.
@throws AssertionFailedError Error thrown if Object is not null
Parameters:
poArgument Progress.Lang.Object
the Object array to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

IsSerializable (Object)

/* Asserts that the given object can be serialized.
Parameters:
poArgument Progress.Lang.Object
Top

IsType (handle, DataTypeEnum)

Purpose: Asserts that a handle is valid and of a particular datatype
@throws AssertionFailedError Error thrown if the handle is not valid or not of a particular datatype
Parameters:
phArgument HANDLE
The handle being checked.
poCheckType OpenEdge.Core.DataTypeEnum
The type the handle/variable being checked should be.
Top

IsType (handle, DataTypeEnum, character)

Purpose: Asserts that a handle is valid and of a particular datatype
@throws AssertionFailedError Error thrown if the handle is not valid or not of a particular datatype.
Parameters:
phArgument HANDLE
The handle being checked.
poCheckType OpenEdge.Core.DataTypeEnum
The type the handle/variable being checked should be.
pcName CHARACTER
The name of the variable/handle.
Top

IsType (Object, Class)

Purpose: Asserts that a object is valid and of a particular type
@throws AssertionFailedError Error thrown if the object is not valid and not of particular type.
Parameters:
poArgument Progress.Lang.Object
The Object being checked.
poType Progress.Lang.Class
The type the being checked.
Top

IsType (Object[], Class)

Purpose: Asserts that a object extent is valid and of a particular type for each array item
@throws AssertionFailedError Error thrown if the object array is not valid any of the array
item is not of particular type.
Parameters:
poArgument Progress.Lang.Object
The Object being checked.
poType Progress.Lang.Class
The type the being checked.
Top

NotAbstract (Class)

Purpose: Asserts that the given type is not an abstract.
@throws AssertionFailedError Error thrown if the type is abstract
Parameters:
poArgument Progress.Lang.Class
the type to check
Top

NotEqual (Object, Object)

Purpose: Asserts that two objects are not equal.
@throws AssertionFailedError Error thrown if they are equal
Parameters:
a Progress.Lang.Object
ram a expected value Object
b Progress.Lang.Object
the value of Object being expected
Top

NotFinal (Class)

Purpose: Asserts that the given type is not final.
@throws AssertionFailedError Error thrown if the type is final
Parameters:
poArgument Progress.Lang.Class
the type to check
Top

NotInterface (Class)

Purpose: Asserts that the given type is not an interface.
@throws AssertionFailedError Error thrown if the type is an interface
Parameters:
poArgument Progress.Lang.Class
the type to check
Top

NotNull (Object)

Purpose: Asserts that the object is not null.
@throws AssertionFailedError Error thrown if Object is null
Parameters:
poArgument Progress.Lang.Object
the Object to check
Top

NotNull (Object, character)

Purpose: Asserts that the object is not null.
@throws AssertionFailedError Error thrown if Object is null
Parameters:
poArgument Progress.Lang.Object
the Object to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

NotNull (Object[])

Purpose: Asserts that the object array is not null.
@throws AssertionFailedError Error thrown if Object is null
Parameters:
poArgument Progress.Lang.Object
the Object array to check
Top

NotNull (Object[], character)

Purpose: Asserts that the object array is not null.
@throws AssertionFailedError Error thrown if Object is null
Parameters:
poArgument Progress.Lang.Object
the Object array to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

NotNullOrEmpty (ICollection)

Purpose: Asserts that the given collection is not null or empty.
@throws AssertionFailedError Error thrown if the collection object is null or empty
Parameters:
poArgument OpenEdge.Core.Collections.ICollection
the ICollection object to check
Top

NotNullOrEmpty (ICollection, character)

Purpose: Asserts that the given collection is not null or empty.
@throws AssertionFailedError Error thrown if the collection object is null or empty
Parameters:
poArgument OpenEdge.Core.Collections.ICollection
the ICollection object to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

NotNullOrEmpty (IMap)

Purpose: Asserts that the given map is not null or empty.
@throws AssertionFailedError Error thrown if the map object is null or empty
Parameters:
poArgument OpenEdge.Core.Collections.IMap
the IMap object to check
Top

NotNullOrEmpty (IMap, character)

Purpose: Asserts that the given map is not null or empty.
@throws AssertionFailedError Error thrown if the map object is null or empty
Parameters:
poArgument OpenEdge.Core.Collections.IMap
the IMap object to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

NotNullOrEmpty (Object[])

Purpose: Asserts that the given object array is not null or empty.
@throws AssertionFailedError Error thrown if the object array is null or empty
Parameters:
poArgument Progress.Lang.Object
the Object array to check
Top

NotNullOrEmpty (Object[], character)

Purpose: Asserts that the given object array is not null or empty.
@throws AssertionFailedError Error thrown if the object array is null or empty
Parameters:
poArgument Progress.Lang.Object
the Object array to check
pcName CHARACTER
the identifying name for the AssertionFailedError
Top

NotSerializable (Object)

/* Asserts that the given object cannot be serialized.
Parameters:
poArgument Progress.Lang.Object
Top

NotType (handle, DataTypeEnum)

Purpose: Asserts that a handle is valid and not of a particular datatype
@throws AssertionFailedError Error thrown if the handle is not valid or of a particular datatype
Parameters:
phArgument HANDLE
The handle being checked.
poCheckType OpenEdge.Core.DataTypeEnum
The type the handle/variable being checked should be.
Top

NotType (handle, DataTypeEnum, character)

Purpose: Asserts that a handle is valid and not of a particular datatype
@throws AssertionFailedError Error thrown if the handle is not valid or of a particular datatype
Parameters:
phArgument HANDLE
The handle being checked.
poCheckType OpenEdge.Core.DataTypeEnum
The type the handle/variable being checked should be.
pcName CHARACTER
the identifying name for the AssertionFailedError.
Top

NotType (Object, Class)

Purpose: Asserts that a object is valid and not of a particular type
@throws AssertionFailedError Error thrown if the object is not valid and of particular type.
Parameters:
poArgument Progress.Lang.Object
The Object being checked.
poType Progress.Lang.Class
The type the being checked.


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7