public class DateMatchers
extends java.lang.Object
Constructor and Description |
---|
DateMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<java.util.Collection<java.util.Date>> |
containsSameDatesAs(java.util.Collection<java.util.Date> expectedDates) |
static org.hamcrest.Matcher<java.util.Collection<org.joda.time.DateTime>> |
containsSameDateTimesAs(java.util.Collection<org.joda.time.DateTime> expectedDates) |
static org.hamcrest.Matcher<java.util.Date> |
isAfter(java.util.Date expectedDate) |
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isAfter(org.joda.time.DateTime expectedDate) |
static org.hamcrest.Matcher<java.util.Date> |
isBefore(java.util.Date expectedDate) |
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isBefore(org.joda.time.DateTime expectedDate) |
static org.hamcrest.Matcher<java.util.Date> |
isBetween(java.util.Date startDate,
java.util.Date endDate) |
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isBetween(org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate) |
static org.hamcrest.Matcher<java.util.Date> |
isCloseTo(java.util.Date expected,
org.joda.time.Period within) |
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isCloseTo(org.joda.time.DateTime expected,
org.joda.time.Period within) |
static org.hamcrest.Matcher<java.util.Date> |
isSameAs(java.util.Date expectedDate) |
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isSameAs(org.joda.time.DateTime expectedDate) |
public static org.hamcrest.Matcher<java.util.Date> isSameAs(java.util.Date expectedDate)
public static org.hamcrest.Matcher<java.util.Date> isCloseTo(java.util.Date expected, org.joda.time.Period within)
public static org.hamcrest.Matcher<org.joda.time.DateTime> isCloseTo(org.joda.time.DateTime expected, org.joda.time.Period within)
public static org.hamcrest.Matcher<java.util.Date> isBefore(java.util.Date expectedDate)
public static org.hamcrest.Matcher<java.util.Date> isAfter(java.util.Date expectedDate)
public static org.hamcrest.Matcher<java.util.Date> isBetween(java.util.Date startDate, java.util.Date endDate)
public static org.hamcrest.Matcher<org.joda.time.DateTime> isSameAs(org.joda.time.DateTime expectedDate)
public static org.hamcrest.Matcher<org.joda.time.DateTime> isBefore(org.joda.time.DateTime expectedDate)
public static org.hamcrest.Matcher<org.joda.time.DateTime> isAfter(org.joda.time.DateTime expectedDate)
public static org.hamcrest.Matcher<org.joda.time.DateTime> isBetween(org.joda.time.DateTime startDate, org.joda.time.DateTime endDate)
public static org.hamcrest.Matcher<java.util.Collection<org.joda.time.DateTime>> containsSameDateTimesAs(java.util.Collection<org.joda.time.DateTime> expectedDates)
public static org.hamcrest.Matcher<java.util.Collection<java.util.Date>> containsSameDatesAs(java.util.Collection<java.util.Date> expectedDates)