Class Matched<T>

  • Type Parameters:
    T - the type of object that the condition accepts
    All Implemented Interfaces:
    org.assertj.core.api.Descriptable<org.assertj.core.api.Condition<T>>

    public final class Matched<T>
    extends org.assertj.core.api.Condition<T>
    Adapter class allowing a Hamcrest Matcher to be used as an AssertJ Condition.
    • Method Detail

      • matches

        public boolean matches​(T value)
        Overrides:
        matches in class org.assertj.core.api.Condition<T>
      • when

        public static <T> org.assertj.core.api.Condition<T> when​(org.hamcrest.Matcher<? extends T> matcher)
      • by

        public static <T> org.assertj.core.api.Condition<T> by​(org.hamcrest.Matcher<? extends T> matcher)