Package org.dbunit.assertion
Class DbUnitAssert.ComparisonColumn
java.lang.Object
org.dbunit.assertion.DbUnitAssert.ComparisonColumn
- Enclosing class:
DbUnitAssert
Represents a single column to be used for the comparison of table data.
It contains the
DataType to be used for comparing the given
column. This DataType matches the expected and actual column's
datatype.- Since:
- 2.4.0
- Version:
- $Revision: 864 $ $Date: 2008-11-07 06:27:26 -0800 (Fri, 07 Nov 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonColumn(String tableName, Column expectedColumn, Column actualColumn, FailureHandler failureHandler) -
Method Summary
-
Constructor Details
-
ComparisonColumn
public ComparisonColumn(String tableName, Column expectedColumn, Column actualColumn, FailureHandler failureHandler) - Parameters:
tableName- The table name which is only needed for debugging output.expectedColumn- The expected column needed to resolve theDataTypeto use for the actual comparison.actualColumn- The actual column needed to resolve theDataTypeto use for the actual comparison.failureHandler- TheFailureHandlerto be used when no datatype can be determined.
-
-
Method Details
-
getColumnName
- Returns:
- The column actually being compared.
-
getDataType
- Returns:
- The
DataTypeto use for the actual comparison.
-