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