Class IsActualWithinToleranceOfExpectedTimestampValueComparer

java.lang.Object
org.dbunit.assertion.comparer.value.ValueComparerBase
org.dbunit.assertion.comparer.value.ValueComparerTemplateBase
org.dbunit.assertion.comparer.value.IsActualWithinToleranceOfExpectedTimestampValueComparer
All Implemented Interfaces:
ValueComparer

public class IsActualWithinToleranceOfExpectedTimestampValueComparer extends ValueComparerTemplateBase
ValueComparer implementation for Timestamps that verifies actual value is within a low and high milliseconds tolerance range of expected value. Note: If actual and expected values are both null, the comparison passes.
Since:
2.6.0
Author:
Jeff Jensen
  • Field Details

  • Constructor Details

    • IsActualWithinToleranceOfExpectedTimestampValueComparer

      public IsActualWithinToleranceOfExpectedTimestampValueComparer(long lowToleranceValueInMillis, long highToleranceValueInMillis)
      Create instance specifying the allowed actual time difference range from expected.
      Parameters:
      lowToleranceValueInMillis - The minimum time difference allowed.
      highToleranceValueInMillis - The maximum time difference allowed.
  • Method Details