Package org.dmfs.jems2.hamcrest.matchers
Class LambdaMatcher<Testee,Feature>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<Testee,Feature>
org.dmfs.jems2.hamcrest.matchers.LambdaMatcher<Testee,Feature>
- All Implemented Interfaces:
org.hamcrest.Matcher<Testee>,org.hamcrest.SelfDescribing
public final class LambdaMatcher<Testee,Feature>
extends org.hamcrest.FeatureMatcher<Testee,Feature>
A version of a
FeatureMatcher which takes a delegate Function instead of requiring to override it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FeaturefeatureValueOf(Testee actual) static <Testee,Feature>
org.hamcrest.Matcher<Testee>having(String name, org.dmfs.jems2.Function<Testee, Feature> function, org.hamcrest.Matcher<? super Feature> subMatcher) static <Testee,Feature>
org.hamcrest.Matcher<Testee>having(org.dmfs.jems2.Function<Testee, Feature> function, org.hamcrest.Matcher<? super Feature> subMatcher) Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafelyMethods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
LambdaMatcher
-
-
Method Details
-
having
public static <Testee,Feature> org.hamcrest.Matcher<Testee> having(String name, org.dmfs.jems2.Function<Testee, Feature> function, org.hamcrest.Matcher<? super Feature> subMatcher) -
having
public static <Testee,Feature> org.hamcrest.Matcher<Testee> having(org.dmfs.jems2.Function<Testee, Feature> function, org.hamcrest.Matcher<? super Feature> subMatcher) -
featureValueOf
-