|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.assertj.core.error.BasicErrorMessageFactory org.assertj.core.error.ShouldBeBetween
public class ShouldBeBetween
Creates an error message indicating that an assertion that verifies that a Date
is between start - end dates (inclusive
or not) failed.
Field Summary |
---|
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory |
---|
arguments, format |
Method Summary | ||
---|---|---|
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
|
shouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new ShouldBeBetween . |
|
static
|
shouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new ShouldBeBetween . |
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory |
---|
create, create, equals, hashCode, toString, unquotedString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public 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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |