public class ExceptionListener extends Object
| Constructor and Description |
|---|
ExceptionListener(MuleContext muleContext)
Constructor for creating a listener for any exception thrown within a flow or message source.
|
| Modifier and Type | Method and Description |
|---|---|
ExceptionListener |
assertExpectedException(Class<? extends Throwable> expectedExceptionType) |
ExceptionListener |
assertExpectedExceptionCausedBy(Class<? extends Throwable> expectedExceptionCauseType)
Asserts that there is at least one exception with the given cause
|
void |
assertNotInvoked()
Asserts that the exception handler was not invoked.
|
ExceptionListener |
setNumberOfExecutionsRequired(int numberOfExecutionsRequired) |
ExceptionListener |
setTimeoutInMillis(int timeout) |
ExceptionListener |
waitUntilAllNotificationsAreReceived() |
public ExceptionListener(MuleContext muleContext)
public ExceptionListener waitUntilAllNotificationsAreReceived()
public ExceptionListener assertExpectedException(Class<? extends Throwable> expectedExceptionType)
public ExceptionListener assertExpectedExceptionCausedBy(Class<? extends Throwable> expectedExceptionCauseType)
expectedExceptionCauseType - the excepted cause of a thrown exceptionpublic ExceptionListener setNumberOfExecutionsRequired(int numberOfExecutionsRequired)
numberOfExecutionsRequired - number of times that the listener must be notified before releasing the latch.public ExceptionListener setTimeoutInMillis(int timeout)
public void assertNotInvoked()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.