Package org.fest.assertions.error
Class ShouldBeBetween
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldBeBetween
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
Date
is between start - end dates (inclusive
or not) failed.- Author:
- Joel Costigliola
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Creates a newShouldBeBetween
.static ErrorMessageFactory
shouldBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy) Creates a newShouldBeBetween
.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldBeBetween
public static ErrorMessageFactory shouldBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy) Creates a newShouldBeBetween
.- Parameters:
actual
- the actual value in the failed assertion.start
- the lower boundary of date period.end
- the lower boundary of date period.inclusiveStart
- wether to include start date in period.inclusiveEnd
- wether to include end date in period.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeBetween
public static ErrorMessageFactory shouldBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Creates a newShouldBeBetween
.- Parameters:
actual
- the actual value in the failed assertion.start
- the lower boundary of date period.end
- the lower boundary of date period.inclusiveStart
- wether to include start date in period.inclusiveEnd
- wether to include end date in period.- Returns:
- the created
ErrorMessageFactory
.
-