Package org.assertj.core.error
Class ShouldHaveSameTime
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldHaveSameTime
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveSameTime extends BasicErrorMessageFactory
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, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldHaveSameTime(Date actual, Date expected)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
shouldHaveSameTime
public static ErrorMessageFactory shouldHaveSameTime(Date actual, Date expected)
Creates a new
.ShouldHaveSameTime
- Parameters:
actual
- the actual value in the failed assertion.expected
- the expected timestamp.- Returns:
- the created
ErrorMessageFactory
.
-
-