com.silverpeas.calendar
Class DatableMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<Datable<?>>
          extended by 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).


Method Summary
 void describeTo(org.hamcrest.Description description)
           
static org.hamcrest.Matcher<Datable<?>> isAfter(Datable<?> expected)
           
static org.hamcrest.Matcher<Datable<?>> isBefore(Datable<?> expected)
           
static org.hamcrest.Matcher<Datable<?>> isEqualTo(Datable<?> expected)
           
 boolean matchesSafely(Datable<?> actual)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.