public class TestFlow
extends org.mule.runtime.core.privileged.processor.CompositeProcessorChainRouter
The Test Flow
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.core.api.MuleContext |
muleContext |
static String |
NO_TAG_TOKEN |
| Constructor and Description |
|---|
TestFlow() |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
evaluateExpectException(org.mule.runtime.api.event.Event event) |
protected Boolean |
exceptionMatches(Throwable exception) |
String |
getDescription() |
String |
getExpectedErrorType() |
String |
getExpectedException() |
String |
getName() |
Set<String> |
getTags() |
protected boolean |
isErrorIdExpected(org.mule.runtime.api.event.Event exceptionEvent) |
protected boolean |
isExceptionExpected(Throwable exception,
org.mule.runtime.api.event.Event exceptionEvent) |
protected boolean |
isExpectingFailure()
Validates if this Test is expecting to fail
|
boolean |
isIgnore() |
org.mule.runtime.api.event.Event |
run(org.mule.runtime.api.event.Event event) |
void |
setDescription(String description) |
void |
setExpectedErrorType(String expectedErrorType) |
void |
setExpectedException(String expectedException) |
void |
setIgnore(boolean ignore) |
void |
setMuleContext(org.mule.runtime.core.api.MuleContext muleContext) |
void |
setTags(String tags) |
protected Optional<org.junit.ComparisonFailure> |
validateExpected(Throwable exception,
org.mule.runtime.api.event.Event exceptionEvent)
Validates if the MUnit Test Flow is expecting this specific exception
|
dispose, getExecutableFunction, initialise, setProcessorChains, start, stopcreateEventContext, execute, executegetAnnotation, getAnnotations, getLocation, getRootContainerName, setAnnotationspublic static final String NO_TAG_TOKEN
@Inject protected org.mule.runtime.core.api.MuleContext muleContext
public boolean isIgnore()
public void setIgnore(boolean ignore)
public String getExpectedErrorType()
public void setExpectedErrorType(String expectedErrorType)
public String getExpectedException()
public void setExpectedException(String expectedException)
public void setTags(String tags)
public String getDescription()
public void setDescription(String description)
public String getName()
public void setMuleContext(org.mule.runtime.core.api.MuleContext muleContext)
setMuleContext in class org.mule.runtime.core.privileged.processor.CompositeProcessorChainRouterpublic org.mule.runtime.api.event.Event run(org.mule.runtime.api.event.Event event)
throws Throwable
Throwableprotected boolean isExpectingFailure()
protected Optional<org.junit.ComparisonFailure> validateExpected(Throwable exception, org.mule.runtime.api.event.Event exceptionEvent) throws org.mule.munit.common.exception.MunitError
exception - the exceptionexceptionEvent - the event comming with the exceptionorg.mule.munit.common.exception.MunitError - in case of major internal errorprotected boolean isErrorIdExpected(org.mule.runtime.api.event.Event exceptionEvent)
throws org.mule.munit.common.exception.MunitError
org.mule.munit.common.exception.MunitErrorprotected boolean isExceptionExpected(Throwable exception, org.mule.runtime.api.event.Event exceptionEvent) throws org.mule.munit.common.exception.MunitError
org.mule.munit.common.exception.MunitErrorprotected Boolean evaluateExpectException(org.mule.runtime.api.event.Event event) throws org.mule.munit.common.exception.MunitError
org.mule.munit.common.exception.MunitErrorCopyright © 2017. All rights reserved.