public class ShouldBeInSameHour extends BasicErrorMessageFactory
Date
is in same year, month, day of month
and hour as another one failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeInSameHour(java.util.Date actual,
java.util.Date other)
Creates a new
ShouldBeInSameHour . |
create, equals, hashCode, toString
public static ErrorMessageFactory shouldBeInSameHour(java.util.Date actual, java.util.Date other)
ShouldBeInSameHour
.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.ErrorMessageFactory
.Copyright © 2007–2018. All rights reserved.