public class ShouldBeInSameYear extends BasicErrorMessageFactory
Date is in same year as another one failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeInSameYear(Date actual,
Date other)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldBeInSameYear(Date actual, Date other)
ShouldBeInSameYear.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.ErrorMessageFactory.Copyright © 2014–2019 AssertJ. All rights reserved.