public class MediaTypeMatcher extends TypedValueMatcher
| Constructor and Description |
|---|
MediaTypeMatcher(org.mule.runtime.api.metadata.MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
doMatch(org.mule.runtime.api.metadata.TypedValue typedValue) |
org.hamcrest.Matcher<Object> |
toPlainValueMatcher()
Returns the same matcher but for any object instead of just
TypedValue |
matchespublic MediaTypeMatcher(org.mule.runtime.api.metadata.MediaType mediaType)
public boolean doMatch(org.mule.runtime.api.metadata.TypedValue typedValue)
doMatch in class TypedValueMatcherpublic void describeMismatch(Object item, org.hamcrest.Description description)
describeMismatch in interface org.hamcrest.Matcher<org.mule.runtime.api.metadata.TypedValue>describeMismatch in class org.hamcrest.BaseMatcher<org.mule.runtime.api.metadata.TypedValue>public void describeTo(org.hamcrest.Description description)
public org.hamcrest.Matcher<Object> toPlainValueMatcher()
TypedValueMatcherTypedValuetoPlainValueMatcher in class TypedValueMatcherCopyright © 2019. All rights reserved.