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
. |
static ErrorMessageFactory |
shouldBeCloseTo(Temporal actual,
Temporal other,
String differenceDescription)
Creates a new
. |
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.public static ErrorMessageFactory shouldBeCloseTo(Temporal actual, Temporal other, String differenceDescription)
ShouldBeCloseTo.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.differenceDescription - detailed difference description message.ErrorMessageFactory.Copyright © 2014–2018 AssertJ. All rights reserved.