public class ShouldBeCloseTo extends BasicErrorMessageFactory
Date is close to another one from some delta
failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeCloseTo(Date actual,
Date other,
long deltaInMilliseconds,
long difference)
Creates a new
ShouldBeCloseTo. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeCloseTo(Date actual, Date other, long deltaInMilliseconds, long difference)
ShouldBeCloseTo.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.deltaInMilliseconds - the delta used for date comparison, expressed in milliseconds.difference - the difference in milliseconds between actual and other dates.ErrorMessageFactory.Copyright © 2013–2016 AssertJ. All rights reserved.