public abstract class IsDayOfMonth extends Object
| Constructor and Description |
|---|
IsDayOfMonth() |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Date> |
isFirstDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static org.hamcrest.Matcher<Date> |
isLastDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
public static org.hamcrest.Matcher<Date> isFirstDayOfMonth()
assertThat(myDate, isFirstDayOfMonth());
public static org.hamcrest.Matcher<Date> isLastDayOfMonth()
assertThat(myDate, isLastDayOfMonth());
Copyright © 2014. All Rights Reserved.