Package org.fest.assertions.error
Class ShouldBeInThePast
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldBeInThePast
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeInThePast extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aDate
is in the past 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
shouldBeInThePast(java.util.Date actual)
Creates a newShouldBeInThePast
.static ErrorMessageFactory
shouldBeInThePast(java.util.Date actual, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeInThePast
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldBeInThePast
public static ErrorMessageFactory shouldBeInThePast(java.util.Date actual, ComparisonStrategy comparisonStrategy)
Creates a newShouldBeInThePast
.- Parameters:
actual
- the actual value in the failed assertion.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeInThePast
public static ErrorMessageFactory shouldBeInThePast(java.util.Date actual)
Creates a newShouldBeInThePast
.- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
-