Package org.elasticsearch.test.hamcrest
Class ElasticsearchMatchers.HasPropertyLambdaMatcher<T,V>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<T,V>
org.elasticsearch.test.hamcrest.ElasticsearchMatchers.HasPropertyLambdaMatcher<T,V>
- All Implemented Interfaces:
org.hamcrest.Matcher<T>
,org.hamcrest.SelfDescribing
- Enclosing class:
- ElasticsearchMatchers
public static class ElasticsearchMatchers.HasPropertyLambdaMatcher<T,V>
extends org.hamcrest.FeatureMatcher<T,V>
-
Method Summary
Modifier and TypeMethodDescriptionprotected V
featureValueOf
(T actual) static <T,
V> org.hamcrest.core.CombinableMatcher<T> hasProperty
(Function<? super T, ? extends V> property, org.hamcrest.Matcher<V> valueMatcher) Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafely
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Method Details
-
featureValueOf
-
hasProperty
public static <T,V> org.hamcrest.core.CombinableMatcher<T> hasProperty(Function<? super T, ? extends V> property, org.hamcrest.Matcher<V> valueMatcher) - Parameters:
valueMatcher
- The matcher to apply to the propertyproperty
- The lambda to fetch property
-