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,
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 Message> errorEventMatcher) |
ExpectedError |
expectErrorType(org.mule.tck.junit4.matcher.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 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.TestRule
public void expectError(String namespace, String errorTypeDefinition, Class<?> cause, String message)
public void expectError(String namespace, 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(org.mule.tck.junit4.matcher.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 Component> failingComponentMatcher)
public ExpectedError expectErrorMessage(org.hamcrest.Matcher<? extends Message> errorEventMatcher)
Copyright © 2018. All rights reserved.