Class OptionalPresentMatcher<T>

java.lang.Object
org.hamcrest.BaseMatcher<Optional<? extends T>>
org.hamcrest.TypeSafeMatcher<Optional<? extends T>>
org.linkki.test.matcher.OptionalPresentMatcher<T>
All Implemented Interfaces:
org.hamcrest.Matcher<Optional<? extends T>>, org.hamcrest.SelfDescribing

public class OptionalPresentMatcher<T> extends org.hamcrest.TypeSafeMatcher<Optional<? extends T>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    OptionalPresentMatcher(boolean expected)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(Optional<? extends T> item)
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, describeMismatchSafely, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OptionalPresentMatcher

      public OptionalPresentMatcher(boolean expected)
  • Method Details

    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • matchesSafely

      protected boolean matchesSafely(Optional<? extends T> item)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<Optional<? extends T>>