Class ChronoLocalDateMatcher

java.lang.Object
io.github.cjstehno.testthings.match.ChronoLocalDateMatcher

public final class ChronoLocalDateMatcher extends Object
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 Details

    • ChronoLocalDateMatcher

      public ChronoLocalDateMatcher()
  • Method Details

    • isBefore

      public static org.hamcrest.Matcher<ChronoLocalDate> isBefore(ChronoLocalDate date)
      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

      public static org.hamcrest.Matcher<ChronoLocalDate> isAfter(ChronoLocalDate date)
      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

      public static org.hamcrest.Matcher<ChronoLocalDate> isEqualOrBefore(ChronoLocalDate date)
      Matches a date that is before or equal to the specified date value.
      Parameters:
      date - the target date value
      Returns:
      the matcher
    • isEqualOrAfter

      public static org.hamcrest.Matcher<ChronoLocalDate> isEqualOrAfter(ChronoLocalDate date)
      Matches a date that is after or equal to the specified date value.
      Parameters:
      date - the target date value
      Returns:
      the matcher