com.silverpeas.calendar
Class DatableMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Datable<?>>
com.silverpeas.calendar.DatableMatcher
- All Implemented Interfaces:
- org.hamcrest.Matcher<Datable<?>>, org.hamcrest.SelfDescribing
public class DatableMatcher
- extends org.hamcrest.TypeSafeMatcher<Datable<?>>
A matcher of datable objects between them, whatever their concrete type (a date or a date time).
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
describeMismatch, describeMismatchSafely, matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
isBefore
public static org.hamcrest.Matcher<Datable<?>> isBefore(Datable<?> expected)
isAfter
public static org.hamcrest.Matcher<Datable<?>> isAfter(Datable<?> expected)
isEqualTo
public static org.hamcrest.Matcher<Datable<?>> isEqualTo(Datable<?> expected)
describeTo
public void describeTo(org.hamcrest.Description description)
matchesSafely
public boolean matchesSafely(Datable<?> actual)
- Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Datable<?>>
Copyright © 2016 Silverpeas. All Rights Reserved.