| Constructor and Description |
|---|
IsDay() |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Date> |
isToday()
Creates a matcher that matches when the examined date is today
For example:
|
static org.hamcrest.Matcher<Date> |
isTomorrow()
Creates a matcher that matches when the examined date is tomorrow
For example:
|
static org.hamcrest.Matcher<Date> |
isYesterday()
Creates a matcher that matches when the examined date is yesterday
For example:
|
public static org.hamcrest.Matcher<Date> isYesterday()
assertThat(myDate, isToday());
public static org.hamcrest.Matcher<Date> isToday()
assertThat(myDate, isToday());
public static org.hamcrest.Matcher<Date> isTomorrow()
assertThat(myDate, isTomorrow());
Copyright © 2014. All Rights Reserved.