public class ExpectedError extends Object implements org.junit.rules.TestRule
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
ExpectedError |
expectCause(org.hamcrest.Matcher<? extends Throwable> expectedCause) |
void |
expectError(String namespace,
org.mule.runtime.extension.api.error.ErrorTypeDefinition errorTypeDefinition,
Class<?> cause,
String message)
Helper method to configure all the matchers that can be used with this rule at the same time.
|
void |
expectError(String namespace,
String errorTypeDefinition,
Class<?> cause,
String message)
Helper method to configure all the matchers that can be used with this rule at the same time.
|
ExpectedError |
expectErrorMessage(org.hamcrest.Matcher<? extends org.mule.runtime.api.message.Message> errorEventMatcher) |
ExpectedError |
expectErrorType(ErrorTypeMatcher matcher) |
ExpectedError |
expectErrorType(org.hamcrest.Matcher<String> namespaceMatcher,
org.hamcrest.Matcher<String> errorTypeMatcher) |
ExpectedError |
expectErrorType(String namespace,
String errorType) |
ExpectedError |
expectEvent(org.hamcrest.Matcher<? extends CoreEvent> eventMatcher) |
ExpectedError |
expectFailingComponent(org.hamcrest.Matcher<? extends org.mule.runtime.api.component.Component> failingComponentMatcher) |
ExpectedError |
expectMessage(org.hamcrest.Matcher<String> matcher) |
static ExpectedError |
none() |
String |
toString() |
public static ExpectedError none()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic void expectError(String namespace, String errorTypeDefinition, Class<?> cause, String message)
public void expectError(String namespace, org.mule.runtime.extension.api.error.ErrorTypeDefinition errorTypeDefinition, Class<?> cause, String message)
public ExpectedError expectMessage(org.hamcrest.Matcher<String> matcher)
public ExpectedError expectErrorType(String namespace, String errorType)
public ExpectedError expectErrorType(org.hamcrest.Matcher<String> namespaceMatcher, org.hamcrest.Matcher<String> errorTypeMatcher)
public ExpectedError expectErrorType(ErrorTypeMatcher matcher)
public ExpectedError expectCause(org.hamcrest.Matcher<? extends Throwable> expectedCause)
public ExpectedError expectEvent(org.hamcrest.Matcher<? extends CoreEvent> eventMatcher)
public ExpectedError expectFailingComponent(org.hamcrest.Matcher<? extends org.mule.runtime.api.component.Component> failingComponentMatcher)
public ExpectedError expectErrorMessage(org.hamcrest.Matcher<? extends org.mule.runtime.api.message.Message> errorEventMatcher)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.