Class ChronoLocalDateMatcher
java.lang.Object
io.github.cjstehno.testthings.match.ChronoLocalDateMatcher
Provides some matchers for working with
ChronoLocalDate
objects - most of these are just syntax aliases
on top of standard Hamcrest matchers - useful to make code more clear.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<ChronoLocalDate>
isAfter
(ChronoLocalDate date) Matches a date that is after (greater than but not equal to) the specified date value.static org.hamcrest.Matcher<ChronoLocalDate>
isBefore
(ChronoLocalDate date) Matches a date that is before (less than but not equal to) the specified date value.static org.hamcrest.Matcher<ChronoLocalDate>
Matches a date that is after or equal to the specified date value.static org.hamcrest.Matcher<ChronoLocalDate>
Matches a date that is before or equal to the specified date value.
-
Constructor Details
-
ChronoLocalDateMatcher
public ChronoLocalDateMatcher()
-
-
Method Details
-
isBefore
Matches a date that is before (less than but not equal to) the specified date value.- Parameters:
date
- the target date value- Returns:
- the matcher
-
isAfter
Matches a date that is after (greater than but not equal to) the specified date value.- Parameters:
date
- the target date value- Returns:
- the matcher
-
isEqualOrBefore
Matches a date that is before or equal to the specified date value.- Parameters:
date
- the target date value- Returns:
- the matcher
-
isEqualOrAfter
Matches a date that is after or equal to the specified date value.- Parameters:
date
- the target date value- Returns:
- the matcher
-