public class ShouldBeBetween extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static <T> ErrorMessageFactory |
shouldBeBetween(Comparable<? super T> actual,
Comparable<? super T> start,
Comparable<? super T> end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new
. |
static <T> ErrorMessageFactory |
shouldBeBetween(Comparable<? super T> actual,
Comparable<? super T> start,
Comparable<? super T> end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Deprecated.
|
static ErrorMessageFactory |
shouldBeBetween(Date actual,
Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd)
Creates a new
. |
static ErrorMessageFactory |
shouldBeBetween(Date actual,
Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static <T> ErrorMessageFactory |
shouldBeBetween(Object actual,
Object start,
Object end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
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.@Deprecated public static <T> ErrorMessageFactory shouldBeBetween(Comparable<? super T> actual, Comparable<? super T> start, Comparable<? super T> end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
shouldBeBetween(Object, Object, Object, boolean, boolean, ComparisonStrategy) instead.ShouldBeBetween.T - the type of values to compare.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> ErrorMessageFactory shouldBeBetween(Object actual, Object start, Object 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> ErrorMessageFactory shouldBeBetween(Comparable<? super T> actual, Comparable<? super T> start, Comparable<? super T> end, boolean inclusiveStart, boolean inclusiveEnd)
ShouldBeBetween.T - the type of values to compare.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 © 2025. All rights reserved.