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.


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>

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

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