Class OpenSearchMatchers.HasPropertyLambdaMatcher<T,V>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<T,V>
org.opensearch.test.hamcrest.OpenSearchMatchers.HasPropertyLambdaMatcher<T,V>
- All Implemented Interfaces:
org.hamcrest.Matcher<T>,org.hamcrest.SelfDescribing
- Enclosing class:
OpenSearchMatchers
public static class OpenSearchMatchers.HasPropertyLambdaMatcher<T,V>
extends org.hamcrest.FeatureMatcher<T,V>
-
Method Summary
Modifier and TypeMethodDescriptionprotected VfeatureValueOf(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, matchesSafelyMethods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods 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:
property- The lambda to fetch propertyvalueMatcher- The matcher to apply to the property
-