| Constructor and Description |
|---|
EventMatcher(org.hamcrest.Matcher<org.mule.runtime.api.message.Message> messageMatcher,
org.hamcrest.Matcher<Map<String,org.mule.runtime.api.metadata.TypedValue<?>>> variablesMatcher,
org.hamcrest.Matcher<org.mule.runtime.api.message.ErrorType> errorTypeMatcher,
org.hamcrest.Matcher<org.mule.runtime.api.security.SecurityContext> securityContextMatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(CoreEvent item,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
static EventMatcher |
hasErrorType(org.mule.runtime.extension.api.error.ErrorTypeDefinition type) |
static EventMatcher |
hasErrorType(org.hamcrest.Matcher<String> namespace,
org.hamcrest.Matcher<String> type) |
static EventMatcher |
hasErrorType(String namespace,
String type) |
static EventMatcher |
hasErrorTypeThat(org.hamcrest.Matcher<org.mule.runtime.api.message.ErrorType> errorTypeMatcher) |
static EventMatcher |
hasMessage(org.hamcrest.Matcher<org.mule.runtime.api.message.Message> messageMatcher) |
static EventMatcher |
hasSecurityContext(org.hamcrest.Matcher<org.mule.runtime.api.security.SecurityContext> securityContextMatcher) |
static EventMatcher |
hasVariables(org.hamcrest.Matcher<Map<String,org.mule.runtime.api.metadata.TypedValue<?>>> variablesMatcher) |
protected boolean |
matchesSafely(CoreEvent item) |
public EventMatcher(org.hamcrest.Matcher<org.mule.runtime.api.message.Message> messageMatcher,
org.hamcrest.Matcher<Map<String,org.mule.runtime.api.metadata.TypedValue<?>>> variablesMatcher,
org.hamcrest.Matcher<org.mule.runtime.api.message.ErrorType> errorTypeMatcher,
org.hamcrest.Matcher<org.mule.runtime.api.security.SecurityContext> securityContextMatcher)
public static EventMatcher hasErrorTypeThat(org.hamcrest.Matcher<org.mule.runtime.api.message.ErrorType> errorTypeMatcher)
public static EventMatcher hasErrorType(org.mule.runtime.extension.api.error.ErrorTypeDefinition type)
public static EventMatcher hasErrorType(String namespace, String type)
public static EventMatcher hasErrorType(org.hamcrest.Matcher<String> namespace, org.hamcrest.Matcher<String> type)
public static EventMatcher hasMessage(org.hamcrest.Matcher<org.mule.runtime.api.message.Message> messageMatcher)
public static EventMatcher hasVariables(org.hamcrest.Matcher<Map<String,org.mule.runtime.api.metadata.TypedValue<?>>> variablesMatcher)
public static EventMatcher hasSecurityContext(org.hamcrest.Matcher<org.mule.runtime.api.security.SecurityContext> securityContextMatcher)
protected boolean matchesSafely(CoreEvent item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<CoreEvent>public void describeTo(org.hamcrest.Description description)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.