public class ShouldBeBetween extends BasicErrorMessageFactory
Date is between start - end dates (inclusive
or not) failed.arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldBeBetween(java.util.Date actual,
java.util.Date start,
java.util.Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy) |
private |
ShouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeBetween(java.util.Date actual,
java.util.Date start,
java.util.Date end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new
ShouldBeBetween. |
static ErrorMessageFactory |
shouldBeBetween(java.util.Date actual,
java.util.Date start,
java.util.Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBetween. |
static <T extends java.lang.Comparable<? super T>> |
shouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new
ShouldBeBetween. |
static <T extends java.lang.Comparable<? super T>> |
shouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBetween. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldBeBetween(java.util.Date actual,
java.util.Date start,
java.util.Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
private ShouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
public static ErrorMessageFactory shouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
ShouldBeBetween.actual - the actual value in the failed assertion.start - the lower boundary of date period.end - the lower boundary of date period.inclusiveStart - whether to include start date in period.inclusiveEnd - whether to include end date in period.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd)
ShouldBeBetween.actual - the actual value in the failed assertion.start - the lower boundary of date period.end - the lower boundary of date period.inclusiveStart - whether to include start date in period.inclusiveEnd - whether to include end date in period.ErrorMessageFactory.public static <T extends java.lang.Comparable<? super T>> ErrorMessageFactory shouldBeBetween(T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
ShouldBeBetween.actual - the actual value in the failed assertion.start - the lower boundary of range.end - the lower boundary of range.inclusiveStart - whether to include start value in range.inclusiveEnd - whether to include end value in range.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static <T extends java.lang.Comparable<? super T>> ErrorMessageFactory shouldBeBetween(T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd)
ShouldBeBetween.actual - the actual value in the failed assertion.start - the lower boundary of range.end - the lower boundary of range.inclusiveStart - whether to include start value in range.inclusiveEnd - whether to include end value in range.ErrorMessageFactory.