Package org.assertj.core.error
Class ShouldHaveSameTime
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveSameTime
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a date has same time as other date.
- Author:
- Michal Kordas
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldHaveSameTime
(Date actual, Date expected) Creates a new
.ShouldHaveSameTime
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldHaveSameTime
Creates a new
.ShouldHaveSameTime
- Parameters:
actual
- the actual value in the failed assertion.expected
- the expected timestamp.- Returns:
- the created
ErrorMessageFactory
.
-