Class DateTimeIsCloseToAsMatcher
java.lang.Object
org.hamcrest.BaseMatcher<org.joda.time.DateTime>
org.hamcrest.TypeSafeMatcher<org.joda.time.DateTime>
net.thucydides.model.matchers.dates.DateTimeIsCloseToAsMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<org.joda.time.DateTime>,org.hamcrest.SelfDescribing
public class DateTimeIsCloseToAsMatcher
extends org.hamcrest.TypeSafeMatcher<org.joda.time.DateTime>
-
Constructor Summary
ConstructorsConstructorDescriptionDateTimeIsCloseToAsMatcher(org.joda.time.DateTime expected, org.joda.time.Period margin) -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) booleanmatchesSafely(org.joda.time.DateTime specifiedDate) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
DateTimeIsCloseToAsMatcher
public DateTimeIsCloseToAsMatcher(org.joda.time.DateTime expected, org.joda.time.Period margin)
-
-
Method Details
-
matchesSafely
public boolean matchesSafely(org.joda.time.DateTime specifiedDate) - Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<org.joda.time.DateTime>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-