org.fest.assertions.error
Class ShouldNotBeBetween

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by 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 a Date is not between start - end dates (inclusive or not) failed.

Author:
Joel Costigliola

Method Summary
static 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.fest.util.ComparisonStrategy comparisonStrategy)
          Creates a new ShouldNotBeBetween.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldNotBeBetween

public static ErrorMessageFactory shouldNotBeBetween(Date actual,
                                                     Date start,
                                                     Date end,
                                                     boolean inclusiveStart,
                                                     boolean inclusiveEnd,
                                                     org.fest.util.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 - wether to include start date in period.
inclusiveEnd - wether to include end date in period.
comparisonStrategy - the ComparisonStrategy 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 - wether to include start date in period.
inclusiveEnd - wether to include end date in period.
Returns:
the created ErrorMessageFactory.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.