Package org.dbunit.dataset.datatype
Class ToleratedDeltaMap.ToleratedDelta
java.lang.Object
org.dbunit.dataset.datatype.ToleratedDeltaMap.ToleratedDelta
- Enclosing class:
ToleratedDeltaMap
Simple bean that holds the tolerance for floating point comparisons for a
specific database column.
-
Constructor Summary
ConstructorsConstructorDescriptionToleratedDelta(String tableName, String columnName, double toleratedDelta) ToleratedDelta(String tableName, String columnName, BigDecimal toleratedDelta) ToleratedDelta(String tableName, String columnName, BigDecimal toleratedDelta, boolean isPercentage) ToleratedDelta(String tableName, String columnName, ToleratedDeltaMap.Precision toleratedDelta) -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether or not thetableNameand thecolumnNamematch the ones of this object.toString()
-
Constructor Details
-
ToleratedDelta
- Parameters:
tableName- The name of the tablecolumnName- The name of the column for which the tolerated delta should be appliedtoleratedDelta- The tolerated delta. For example 1E-5 means that the comparison must match the first 5 decimal digits. All subsequent decimals are ignored.
-
ToleratedDelta
- Parameters:
tableName- The name of the tablecolumnName- The name of the column for which the tolerated delta should be appliedtoleratedDelta- The tolerated delta. For example 1E-5 means that the comparison must match the first 5 decimal digits. All subsequent decimals are ignored.
-
ToleratedDelta
public ToleratedDelta(String tableName, String columnName, BigDecimal toleratedDelta, boolean isPercentage) - Parameters:
tableName- The name of the tablecolumnName- The name of the column for which the tolerated delta should be appliedtoleratedDelta- The tolerated delta. For example 1E-5 means that the comparison must match the first 5 decimal digits. All subsequent decimals are ignored.isPercentage- Whether or not the given toleratedDelta value is a percentage. SeeToleratedDeltaMap.Precisionfor more.
-
ToleratedDelta
public ToleratedDelta(String tableName, String columnName, ToleratedDeltaMap.Precision toleratedDelta) - Parameters:
tableName- The name of the tablecolumnName- The name of the column for which the tolerated delta should be appliedtoleratedDelta- The tolerated delta. For example 1E-5 means that the comparison must match the first 5 decimal digits. All subsequent decimals are ignored.
-
-
Method Details