Package org.assertj.core.error
Class ShouldBeBetween
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeBetween
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeBetween extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value is between a start and an end (inclusive or not) failed.
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)privateShouldBeBetween(T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> ErrorMessageFactoryshouldBeBetween(java.lang.Comparable<? super T> actual, java.lang.Comparable<? super T> start, java.lang.Comparable<? super T> end, boolean inclusiveStart, boolean inclusiveEnd)Creates a new.ShouldBeBetweenstatic <T> ErrorMessageFactoryshouldBeBetween(java.lang.Comparable<? super T> actual, java.lang.Comparable<? super T> start, java.lang.Comparable<? super T> end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)Deprecated.static <T> ErrorMessageFactoryshouldBeBetween(java.lang.Object actual, java.lang.Object start, java.lang.Object end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)Creates a new.ShouldBeBetweenstatic ErrorMessageFactoryshouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd)Creates a new.ShouldBeBetweenstatic ErrorMessageFactoryshouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)Creates a new.ShouldBeBetween-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldBeBetween
private ShouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
-
ShouldBeBetween
private ShouldBeBetween(T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
shouldBeBetween
public 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- Parameters:
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- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeBetween
public static ErrorMessageFactory shouldBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd)
Creates a new.ShouldBeBetween- Parameters:
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.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeBetween
@Deprecated public static <T> ErrorMessageFactory shouldBeBetween(java.lang.Comparable<? super T> actual, java.lang.Comparable<? super T> start, java.lang.Comparable<? super T> end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
Deprecated.Creates a new.ShouldBeBetween- Type Parameters:
T- the type of values to compare.- Parameters:
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- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeBetween
public static <T> ErrorMessageFactory shouldBeBetween(java.lang.Object actual, java.lang.Object start, java.lang.Object end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
Creates a new.ShouldBeBetween- Parameters:
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- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeBetween
public static <T> ErrorMessageFactory shouldBeBetween(java.lang.Comparable<? super T> actual, java.lang.Comparable<? super T> start, java.lang.Comparable<? super T> end, boolean inclusiveStart, boolean inclusiveEnd)
Creates a new.ShouldBeBetween- Type Parameters:
T- the type of values to compare.- Parameters:
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.- Returns:
- the created
ErrorMessageFactory.
-
-