Package org.dhatim.sql.hamcrest.matcher
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.hamcrest.Matcher<T>
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
Methods inherited from class org.hamcrest.DiagnosingMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
-
Constructor Details
-
AllMatcher
-
-
Method Details
-
matches
-
describeTo
public void describeTo(org.hamcrest.Description description) -
allOf
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")))
-