public class IsActualEqualToExpectedWithEmptyFailMessageValueComparer extends ValueComparerTemplateBase
ValueComparer
implementation that verifies actual value is equal to
expected value and sets fail message to empty String.
This is primarily for the original assertEquals(*) on
DbUnitAssert
so the
Difference
message stays the same.BASE_FAIL_MSG
Constructor and Description |
---|
IsActualEqualToExpectedWithEmptyFailMessageValueComparer() |
Modifier and Type | Method and Description |
---|---|
protected String |
getFailPhrase() |
protected boolean |
isExpected(ITable expectedTable,
ITable actualTable,
int rowNum,
String columnName,
DataType dataType,
Object expectedValue,
Object actualValue) |
protected String |
makeFailMessage(Object expectedValue,
Object actualValue)
Makes the fail message using
ValueComparerTemplateBase.getFailPhrase() . |
doCompare
compare, toString
public IsActualEqualToExpectedWithEmptyFailMessageValueComparer()
protected boolean isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) throws DatabaseUnitException
isExpected
in class ValueComparerTemplateBase
DatabaseUnitException
protected String makeFailMessage(Object expectedValue, Object actualValue)
ValueComparerTemplateBase
ValueComparerTemplateBase.getFailPhrase()
.makeFailMessage
in class ValueComparerTemplateBase
protected String getFailPhrase()
getFailPhrase
in class ValueComparerTemplateBase
ValueComparerBase.BASE_FAIL_MSG
.Copyright © 2002–2024. All rights reserved.