public class ShouldBeEqualIgnoringNanos extends BasicErrorMessageFactory
ZonedDateTime, LocalDateTime have same year, month, day, hour, minute and second failed.LocalTime have same hour, minute and second failed.OffsetTime have same hour, minute and second failed.arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldBeEqualIgnoringNanos(java.time.LocalTime actual,
java.time.LocalTime other) |
private |
ShouldBeEqualIgnoringNanos(java.lang.Object actual,
java.lang.Object other) |
private |
ShouldBeEqualIgnoringNanos(java.time.OffsetTime actual,
java.time.OffsetTime other) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldBeEqualIgnoringNanos(java.time.LocalTime actual,
java.time.LocalTime other)
Creates a new
. |
static ErrorMessageFactory |
shouldBeEqualIgnoringNanos(java.lang.Object actual,
java.lang.Object other)
Creates a new
. |
static ErrorMessageFactory |
shouldBeEqualIgnoringNanos(java.time.OffsetTime actual,
java.time.OffsetTime other)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldBeEqualIgnoringNanos(java.lang.Object actual,
java.lang.Object other)
private ShouldBeEqualIgnoringNanos(java.time.LocalTime actual,
java.time.LocalTime other)
private ShouldBeEqualIgnoringNanos(java.time.OffsetTime actual,
java.time.OffsetTime other)
public static ErrorMessageFactory shouldBeEqualIgnoringNanos(java.lang.Object actual, java.lang.Object other)
ShouldBeEqualIgnoringNanos.actual - the actual value in the failed assertion.other - the value used in the failed assertion to compare the actual value to.ErrorMessageFactory.public static ErrorMessageFactory shouldBeEqualIgnoringNanos(java.time.LocalTime actual, java.time.LocalTime other)
ShouldBeEqualIgnoringNanos.actual - the actual LocalTime in the failed assertion.other - the LocalTime used in the failed assertion to compare the actual LocalTime to.ErrorMessageFactory.public static ErrorMessageFactory shouldBeEqualIgnoringNanos(java.time.OffsetTime actual, java.time.OffsetTime other)
ShouldBeEqualIgnoringNanos.actual - the actual OffsetTime in the failed assertion.other - the OffsetTime used in the failed assertion to compare the actual OffsetTime to.ErrorMessageFactory.