public class ShouldBeEqualWithTimePrecision extends BasicErrorMessageFactory
AssertionError indicating that an assertion that verifies that two dates are equals
up to a given precision failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeEqual(Date actual,
Date expected,
TimeUnit precision)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeEqual(Date actual, Date expected, TimeUnit precision)
ShouldBeEqualWithTimePrecision.actual - the actual value in the failed assertion.expected - the expected value in the failed assertion.precision - the TimeUnit used to compare actual with expected.AssertionErrorFactory.Copyright © 2013-2015 AssertJ. All Rights Reserved.