Package org.fest.assertions.error
Class ShouldNotBeBetween
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldNotBeBetween
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotBeBetween extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aDate
is not 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldNotBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd)
Creates a newShouldNotBeBetween
.static ErrorMessageFactory
shouldNotBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
Creates a newShouldNotBeBetween
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldNotBeBetween
public static ErrorMessageFactory shouldNotBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)
Creates a newShouldNotBeBetween
.- 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
.
-
shouldNotBeBetween
public static ErrorMessageFactory shouldNotBeBetween(java.util.Date actual, java.util.Date start, java.util.Date end, boolean inclusiveStart, boolean inclusiveEnd)
Creates a newShouldNotBeBetween
.- 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
.
-
-