public class ShouldBeAfter extends BasicErrorMessageFactory
Date
is after another one failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeAfter(Date actual,
Date other)
Creates a new
. |
static ErrorMessageFactory |
shouldBeAfter(Date actual,
Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
shouldBeAfter(Date actual,
int year)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldBeAfter(Date actual, Date other, ComparisonStrategy comparisonStrategy)
ShouldBeAfter
.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.public static ErrorMessageFactory shouldBeAfter(Date actual, Date other)
ShouldBeAfter
.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.ErrorMessageFactory
.public static ErrorMessageFactory shouldBeAfter(Date actual, int year)
ShouldBeAfter
.actual
- the actual value in the failed assertion.year
- the year to compare the actual date's year to.ErrorMessageFactory
.Copyright © 2013–2018 AssertJ. All rights reserved.