| Constructor and Description |
|---|
IsLeapYear() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<Date> |
isLeapYear()
Creates a matcher that matches when the examined date is a leap year
For example:
|
protected boolean |
matchesSafely(Date actual,
org.hamcrest.Description mismatchDesc) |
public static org.hamcrest.Matcher<Date> isLeapYear()
assertThat(myDate, isLeapYear());
protected boolean matchesSafely(Date actual, org.hamcrest.Description mismatchDesc)
matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<Date>public void describeTo(org.hamcrest.Description description)
Copyright © 2014. All Rights Reserved.