Class AllMatcher<T>

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.DiagnosingMatcher<T>
org.dhatim.sql.hamcrest.matcher.AllMatcher<T>
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

public class AllMatcher<T> extends org.hamcrest.DiagnosingMatcher<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    AllMatcher(Iterable<org.hamcrest.Matcher<? super T>> matchers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> org.hamcrest.Matcher<T>
    allOf(Iterable<org.hamcrest.Matcher<? super T>> matchers)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    static <T> org.hamcrest.Matcher<T>
    allOf(org.hamcrest.Matcher<? super T>... matchers)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    static <T> org.hamcrest.Matcher<T>
    allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    static <T> org.hamcrest.Matcher<T>
    allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    static <T> org.hamcrest.Matcher<T>
    allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    static <T> org.hamcrest.Matcher<T>
    allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth, org.hamcrest.Matcher<? super T> fifth)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    static <T> org.hamcrest.Matcher<T>
    allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth, org.hamcrest.Matcher<? super T> fifth, org.hamcrest.Matcher<? super T> sixth)
    Creates a matcher that matches if the examined object matches ALL of the specified matchers.
    void
    describeTo(org.hamcrest.Description description)
     
    boolean
    matches(Object o, org.hamcrest.Description mismatch)
     

    Methods inherited from class org.hamcrest.DiagnosingMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, toString

    Methods inherited from class java.lang.Object

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

    • AllMatcher

      public AllMatcher(Iterable<org.hamcrest.Matcher<? super T>> matchers)
  • Method Details

    • matches

      public boolean matches(Object o, org.hamcrest.Description mismatch)
    • describeTo

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

      public static <T> org.hamcrest.Matcher<T> allOf(Iterable<org.hamcrest.Matcher<? super T>> matchers)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
    • allOf

      @SafeVarargs public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
    • allOf

      public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
    • allOf

      public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
    • allOf

      public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
    • allOf

      public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth, org.hamcrest.Matcher<? super T> fifth)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
    • allOf

      public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second, org.hamcrest.Matcher<? super T> third, org.hamcrest.Matcher<? super T> fourth, org.hamcrest.Matcher<? super T> fifth, org.hamcrest.Matcher<? super T> sixth)
      Creates a matcher that matches if the examined object matches ALL of the specified matchers.

      For example:

      assertThat("myValue", allOf(startsWith("my"), containsString("Val")))