public class MessageMatchers extends Object
| Constructor and Description |
|---|
MessageMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<org.mule.runtime.api.message.Message> |
hasAttributes(org.hamcrest.Matcher<T> attributesMatcher)
Verifies the
Message's attributes using any Attributes matcher. |
static org.hamcrest.Matcher<org.mule.runtime.api.message.Message> |
hasMediaType(org.mule.runtime.api.metadata.MediaType mediaType)
Verifies the the
Message's media type via equals. |
static org.hamcrest.Matcher<org.mule.runtime.api.message.Message> |
hasPayload(org.hamcrest.Matcher<String> matcher)
Verifies the
Message's payload using a String matcher. |
public static <T> org.hamcrest.Matcher<org.mule.runtime.api.message.Message> hasAttributes(org.hamcrest.Matcher<T> attributesMatcher)
Message's attributes using any Attributes matcher.public static org.hamcrest.Matcher<org.mule.runtime.api.message.Message> hasPayload(org.hamcrest.Matcher<String> matcher)
Message's payload using a String matcher. Only works with String and InputStream payloads.public static org.hamcrest.Matcher<org.mule.runtime.api.message.Message> hasMediaType(org.mule.runtime.api.metadata.MediaType mediaType)
Message's media type via equals.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.