Concordion > Extension > Listeners >

Listeners for Verify Rows

When verifying rows, Concordion notifies listeners when the expression has been evaluated and also of each missing row or surplus row in the collection returned by the expression.

Example

An extension is installed that logs assertEquals and verifyRows commands. When the following instrumentation:

    <table concordion:verifyRows="#beatle : getGeorgeAndRingo()">
        <tr><th concordion:assertEquals="#beatle">Matching Beatle</th></tr>
        <tr><td>George Harrison</td></tr>
        <tr><td>Dingo Starr</td></tr>
        <tr><td>George Michael</td></tr>
    </table>        

is run with a method getGeorgeAndRingo() that returns George Harrison and Ringo Starr, the logged events are:

Event
Evaluated '#beatle : getGeorgeAndRingo()'
Success 'George Harrison'
Failure expected:'Dingo Starr' actual:'Ringo Starr'
Missing Row 'George Michael'