testbox.system

Class CollectionExpectation

lucee.Component
    extended by testbox.system.CollectionExpectation

Copyright Since 2005 TestBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- The CollectionExpectation CFC holds a collection and behaves like an expectation that automatically unrolls the collection to verify every element

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any actual


    • access = public
    • returntype = any
    true false
    any assert


    • access = public
    • returntype = any
    true false
    any spec


    • access = public
    • returntype = any
    true false
    Constructor Summary
    init(any spec, any assertions, any collection)
    Method Summary
    string getActual()
    string getAssert()
    string getSpec()
    any onMissingMethod([string missingMethodName], [any missingMethodArguments])
    any setActual(any actual)
    any setAssert(any assert)
    any setSpec(any spec)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any spec, any assertions, any collection)

    Parameters:
    spec
    assertions
    collection

    Property Detail

    actual

    property any actual

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    assert

    property any assert

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    spec

    property any spec

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    Method Detail

    getActual

    public string getActual()


    getAssert

    public string getAssert()


    getSpec

    public string getSpec()


    onMissingMethod

    public any onMissingMethod([string missingMethodName], [any missingMethodArguments])

    Parameters:
    missingMethodName
    missingMethodArguments

    setActual

    public any setActual(any actual)

    Parameters:
    actual

    setAssert

    public any setAssert(any assert)

    Parameters:
    assert

    setSpec

    public any setSpec(any spec)

    Parameters:
    spec