Package org.fest.assertions.error
Class ShouldBeInThePast
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldBeInThePast
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
Date is in the past failed.- Author:
- Joel Costigliola
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldBeInThePast(Date actual) Creates a newShouldBeInThePast.static ErrorMessageFactoryshouldBeInThePast(Date actual, ComparisonStrategy comparisonStrategy) Creates a newShouldBeInThePast.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldBeInThePast
public static ErrorMessageFactory shouldBeInThePast(Date actual, ComparisonStrategy comparisonStrategy) Creates a newShouldBeInThePast.- Parameters:
actual- the actual value in the failed assertion.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldBeInThePast
Creates a newShouldBeInThePast.- Parameters:
actual- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory.
-