Package org.assertj.core.error
Class ShouldHaveTime
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.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.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldHaveTime(Date actual, long expectedTimestamp) Creates a new.ShouldHaveTimeMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveTime
Creates a new.ShouldHaveTime- Parameters:
actual- the actual value in the failed assertion.expectedTimestamp- the expected timestamp.- Returns:
- the created
ErrorMessageFactory.
-