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 Type Method Description protected V
featureValueOf(T actual)
static <T,V>
org.hamcrest.core.CombinableMatcher<T>hasProperty(java.util.function.Function<? super T,? extends V> property, org.hamcrest.Matcher<V> valueMatcher)
-
-
-
Method Detail
-
hasProperty
public static <T,V> org.hamcrest.core.CombinableMatcher<T> hasProperty(java.util.function.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
-
-