Package org.assertj.core.error
Class ShouldNotBeBetween
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBeBetween
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
Date
is not between start - end dates
(inclusive or not) failed.- Author:
- Joel Costigliola
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldNotBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Creates a new
.ShouldNotBeBetween
static ErrorMessageFactory
shouldNotBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotBeBetween
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotBeBetween
public static ErrorMessageFactory shouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotBeBetween
- 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
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotBeBetween
public static ErrorMessageFactory shouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Creates a new
.ShouldNotBeBetween
- 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
.
-