Class ValueComparers
java.lang.Object
org.dbunit.assertion.comparer.value.ValueComparers
Convenience set of common
ValueComparer instances.- Since:
- 2.6.0
- Author:
- Jeff Jensen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueComparerChecks whether the actual value contains the expected string.static final ValueComparerCompares actual and expected values for equality.static final ValueComparerIgnores milliseconds as not all databases store it in Timestamp.static final ValueComparerSame asisActualEqualToExpectedbut itsValueComparerfail message is an empty String (theDifferencefail message still exists).static final ValueComparerChecks whether the actual value is greater than the expected value.static final ValueComparerChecks whether the actual value is greater than or equal to the expected value.static final ValueComparerChecks whether the actual value is less than or equal to the expected value.static final ValueComparerChecks whether the actual value is less than the expected value.static final ValueComparerCompares actual and expected values for inequality.static final ValueComparerChecks whether the actual value is not null.static final ValueComparerChecks whether the actual value is null.static final ValueComparerChecks whether the actual timestamp is up to one minute newer than the expected timestamp.static final ValueComparerChecks whether the actual timestamp is up to one minute older than the expected timestamp.static final ValueComparerChecks whether the actual timestamp is up to one second newer than the expected timestamp.static final ValueComparerChecks whether the actual timestamp is up to one second older than the expected timestamp.static final ValueComparerVerifies nothing and never fails. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
isActualEqualToExpected
Compares actual and expected values for equality.- See Also:
-
isActualEqualToExpectedWithEmptyFailMessage
Same asisActualEqualToExpectedbut itsValueComparerfail message is an empty String (theDifferencefail message still exists). Use this one mainly for backwards compatibility so theDifferencemessage stays the same.- See Also:
-
isActualEqualToExpectedTimestampWithIgnoreMillis
Ignores milliseconds as not all databases store it in Timestamp.- See Also:
-
isActualNotEqualToExpected
Compares actual and expected values for inequality.- See Also:
-
isActualGreaterThanExpected
Checks whether the actual value is greater than the expected value.- See Also:
-
isActualGreaterThanOrEqualToExpected
Checks whether the actual value is greater than or equal to the expected value.- See Also:
-
isActualLessOrEqualToThanExpected
Checks whether the actual value is less than or equal to the expected value.- See Also:
-
isActualLessThanExpected
Checks whether the actual value is less than the expected value.- See Also:
-
isActualNotNullValueComparer
Checks whether the actual value is not null.- See Also:
-
isActualNullValueComparer
Checks whether the actual value is null.- See Also:
-
isActualWithinOneSecondNewerOfExpectedTimestamp
Checks whether the actual timestamp is up to one second newer than the expected timestamp.- See Also:
-
isActualWithinOneSecondOlderOfExpectedTimestamp
Checks whether the actual timestamp is up to one second older than the expected timestamp.- See Also:
-
isActualWithinOneMinuteNewerOfExpectedTimestamp
Checks whether the actual timestamp is up to one minute newer than the expected timestamp.- See Also:
-
isActualWithinOneMinuteOlderOfExpectedTimestamp
Checks whether the actual timestamp is up to one minute older than the expected timestamp.- See Also:
-
isActualContainingExpectedStringValueComparer
Checks whether the actual value contains the expected string.- Since:
- 2.7.0
- See Also:
-
neverFails
Verifies nothing and never fails.- See Also:
-
-
Constructor Details
-
ValueComparers
protected ValueComparers()Default constructor.
-