Namespace: Consultingwerk.Assertion
Class 
ListAssert Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:ListAssert
Purpose:Assertion methods for delimited lists
Description:Routines in this class typically raise an error condition
when the condition is not met.
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jul 14 17:36:13 CEST 2013



Top Method Summary
Options Name Purpose
+ EntryIsInList (character, character) Validates if an entry is in the given list of values
+ EntryIsInList (character, character, character) Validates if an entry is in the given list of values
+ EvenEntries (character) Validates if a list has an even number of entries
+ EvenEntries (character, character) Validates if a list has an even number of entries
+ NumEntries (character, character, integer) Validates if a list has the expected number of entries
+ NumEntries (character, integer) Validates if a list has the expected number of entries
+ UniqueEntries (character) Validates if a list has only unique entries
+ UniqueEntries (character, character) Validates if a list has only unique entries


Method Detail
Top

PUBLIC EntryIsInList (character, character)

Purpose: Validates if an entry is in the given list of values
Notes:

Parameters:
pcEntry CHARACTER
The entry to locate in the list
pcList CHARACTER
The list to locate the entry in
Top

PUBLIC EntryIsInList (character, character, character)

Purpose: Validates if an entry is in the given list of values
Notes:

Parameters:
pcEntry CHARACTER
The entry to locate in the list
pcList CHARACTER
The list to locate the entry in
pcDelimiter CHARACTER
The list delimiter to use
Top

PUBLIC EvenEntries (character)

Purpose: Validates if a list has an even number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
Top

PUBLIC EvenEntries (character, character)

Purpose: Validates if a list has an even number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
pcDelimiter CHARACTER
The list delimiter
Top

PUBLIC NumEntries (character, character, integer)

Purpose: Validates if a list has the expected number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
pcDelimiter CHARACTER
The list delimiter
piEntries INTEGER
The expected number of entries
Top

PUBLIC NumEntries (character, integer)

Purpose: Validates if a list has the expected number of entries
Notes: Uses the comma as the default list delimiter
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
piEntries INTEGER
The expected number of entries
Top

PUBLIC UniqueEntries (character)

Purpose: Validates if a list has only unique entries
Notes: Based on Consultingwerk.Util.ListHelper:VerifyUniqueEntries
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
Top

PUBLIC UniqueEntries (character, character)

Purpose: Validates if a list has only unique entries
Notes: Based on Consultingwerk.Util.ListHelper:VerifyUniqueEntries
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
pcDelimiter CHARACTER
The list delimiter


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:25:39