Class TestUtil.ZonedDateTimeMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing
    Enclosing class:
    TestUtil

    public static class TestUtil.ZonedDateTimeMatcher
    extends org.hamcrest.TypeSafeDiagnosingMatcher<String>
    A matcher that tests that the examined string represents the same instant as the reference datetime.
    • Constructor Detail

      • ZonedDateTimeMatcher

        public ZonedDateTimeMatcher​(ZonedDateTime date)
    • Method Detail

      • matchesSafely

        protected boolean matchesSafely​(String item,
                                        org.hamcrest.Description mismatchDescription)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeDiagnosingMatcher<String>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)