Package org.fest.assertions.error
Class ShouldHaveTime
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldHaveTime
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a date have a certain timestamp.
- Author:
- Guillaume Girou, Nicolas François, Joel Costigliola
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldHaveTime
(Date actual, long expectedTimestamp) Creates a newShouldHaveTime
.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldHaveTime
Creates a newShouldHaveTime
.- Parameters:
actual
- the actual value in the failed assertion.actualTimestamp
- the timestamp ofactual
.expectedTimestamp
- the expected timestamp.- Returns:
- the created
ErrorMessageFactory
.
-