org.dbunit.assertion
Interface FailureHandler

All Superinterfaces:
DifferenceListener, FailureFactory
All Known Implementing Classes:
DefaultFailureHandler, DiffCollectingFailureHandler

public interface FailureHandler
extends DifferenceListener, FailureFactory

Handles the failure of an assertion.

Since:
2.4.0
Version:
$Revision: 872 $ $Date: 2008-11-08 09:45:52 -0600 (Sat, 08 Nov 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Method Summary
 String getAdditionalInfo(ITable expectedTable, ITable actualTable, int row, String columnName)
          Returns a string to be appended to the assertion failure message.
 
Methods inherited from interface org.dbunit.assertion.DifferenceListener
handle
 
Methods inherited from interface org.dbunit.assertion.FailureFactory
createFailure, createFailure
 

Method Detail

getAdditionalInfo

String getAdditionalInfo(ITable expectedTable,
                         ITable actualTable,
                         int row,
                         String columnName)
Returns a string to be appended to the assertion failure message. Is used to provide some more information about a failure (for example to print out some PK columns for identifying the failed rows in the DB).

Parameters:
expectedTable -
actualTable -
row - The row for which the assertion failed
columnName - The column for which the assertion failed
Returns:
A string that is appended to the assertion failure message


Copyright © 2002-2012. All Rights Reserved.