net.thucydides.core.matchers.dates
Class DateMatchers
java.lang.Object
net.thucydides.core.matchers.dates.DateMatchers
public class DateMatchers
- extends Object
Hamcrest matchers to be used with Dates.
|
Method Summary |
static org.hamcrest.Matcher<Collection<Date>> |
containsSameDatesAs(Collection<Date> expectedDates)
|
static org.hamcrest.Matcher<Collection<org.joda.time.DateTime>> |
containsSameDateTimesAs(Collection<org.joda.time.DateTime> expectedDates)
|
static org.hamcrest.Matcher<Date> |
isAfter(Date expectedDate)
|
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isAfter(org.joda.time.DateTime expectedDate)
|
static org.hamcrest.Matcher<Date> |
isBefore(Date expectedDate)
|
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isBefore(org.joda.time.DateTime expectedDate)
|
static org.hamcrest.Matcher<Date> |
isBetween(Date startDate,
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<Date> |
isCloseTo(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<Date> |
isSameAs(Date expectedDate)
|
static org.hamcrest.Matcher<org.joda.time.DateTime> |
isSameAs(org.joda.time.DateTime expectedDate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateMatchers
public DateMatchers()
isSameAs
public static org.hamcrest.Matcher<Date> isSameAs(Date expectedDate)
isCloseTo
public static org.hamcrest.Matcher<Date> isCloseTo(Date expected,
org.joda.time.Period within)
isCloseTo
public static org.hamcrest.Matcher<org.joda.time.DateTime> isCloseTo(org.joda.time.DateTime expected,
org.joda.time.Period within)
isBefore
public static org.hamcrest.Matcher<Date> isBefore(Date expectedDate)
isAfter
public static org.hamcrest.Matcher<Date> isAfter(Date expectedDate)
isBetween
public static org.hamcrest.Matcher<Date> isBetween(Date startDate,
Date endDate)
isSameAs
public static org.hamcrest.Matcher<org.joda.time.DateTime> isSameAs(org.joda.time.DateTime expectedDate)
isBefore
public static org.hamcrest.Matcher<org.joda.time.DateTime> isBefore(org.joda.time.DateTime expectedDate)
isAfter
public static org.hamcrest.Matcher<org.joda.time.DateTime> isAfter(org.joda.time.DateTime expectedDate)
isBetween
public static org.hamcrest.Matcher<org.joda.time.DateTime> isBetween(org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate)
containsSameDateTimesAs
public static org.hamcrest.Matcher<Collection<org.joda.time.DateTime>> containsSameDateTimesAs(Collection<org.joda.time.DateTime> expectedDates)
containsSameDatesAs
public static org.hamcrest.Matcher<Collection<Date>> containsSameDatesAs(Collection<Date> expectedDates)
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.