public class ShouldBeBeforeOrEqualsTo extends BasicErrorMessageFactory
Date
is before or equals to another one
failed.arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldBeBeforeOrEqualsTo(java.util.Date actual,
java.util.Date other,
ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeBeforeOrEqualsTo(java.util.Date actual,
java.util.Date other)
Creates a new
ShouldBeBeforeOrEqualsTo . |
static ErrorMessageFactory |
shouldBeBeforeOrEqualsTo(java.util.Date actual,
java.util.Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBeforeOrEqualsTo . |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldBeBeforeOrEqualsTo(java.util.Date actual, java.util.Date other, ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldBeBeforeOrEqualsTo(java.util.Date actual, java.util.Date other, ComparisonStrategy comparisonStrategy)
ShouldBeBeforeOrEqualsTo
.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 shouldBeBeforeOrEqualsTo(java.util.Date actual, java.util.Date other)
ShouldBeBeforeOrEqualsTo
.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.ErrorMessageFactory
.