public class ShouldBeBetween extends BasicErrorMessageFactory
Date is between start - end dates (inclusive
or not) failed.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeBetween(Date actual,
Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new
ShouldBeBetween. |
static ErrorMessageFactory |
shouldBeBetween(Date actual,
Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBetween. |
static <T extends Comparable<? super T>> |
shouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new
ShouldBeBetween. |
static <T extends 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, unquotedStringpublic static ErrorMessageFactory shouldBeBetween(Date actual, Date start, 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(Date actual, Date start, 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 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 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.Copyright © 2013–2016 AssertJ. All rights reserved.