public class FunctionalTestNotification
extends org.mule.runtime.api.notification.CustomNotification
FunctionlTestNotification is fired by the FunctionalTestProcessor when it receives an event. Test cases
can register a FunctionalTestNotificationListener with Mule to receive these notifications and make assertions about
the number of messages received or the content of the message.
This Notification contains the current CoreEvent, FlowConstruct and reply message. The resource Identifier for
this event is the service name that received the message. This means you can register to listen to Notifications from a
selected FunctionalTestProcessor. i.e.
muleContext.registerListener(this, "*JmsTestCompoennt");
This registration would only receive FunctionalTestNotification objects from components called 'MyJmsTestComponent' and
'YourJmsTestComponent' but not 'HerFileTestComponent'.| Modifier and Type | Field and Description |
|---|---|
static int |
EVENT_RECEIVED |
action, ADMIN_EVENT_ACTION_START_RANGE, ASYNC_MESSAGE_EVENT_ACTION_START_RANGE, CLUSTER_NODE_EVENT_ACTION_START_RANGE, COMPONENT_EVENT_ACTION_START_RANGE, CONNECTION_EVENT_ACTION_START_RANGE, CONTEXT_EVENT_ACTION_START_RANGE, CUSTOM_EVENT_ACTION_START_RANGE, EXCEPTION_EVENT_ACTION_START_RANGE, EXCEPTION_STRATEGY_MESSAGE_EVENT_ACTION_START_RANGE, FLOW_CONSTRUCT_EVENT_ACTION_START_RANGE, MANAGEMENT_EVENT_ACTION_START_RANGE, MESSAGE_EVENT_ACTION_START_RANGE, MESSAGE_EVENT_END_ACTION_START_RANGE, MESSAGE_PROCESSOR_EVENT_ACTION_START_RANGE, NO_ACTION_ID, NO_ACTION_NAME, NULL_ACTION, NULL_MESSAGE, PIPELINE_MESSAGE_EVENT_ACTION_START_RANGE, POLICY_MESSAGE_EVENT_ACTION_START_RANGE, REGISTRY_EVENT_ACTION_START_RANGE, resourceIdentifier, ROUTING_EVENT_ACTION_START_RANGE, SECURITY_EVENT_ACTION_START_RANGE, serverId, SPACE_EVENT_ACTION_START_RANGE, timestamp, TRANSACTION_EVENT_ACTION_START_RANGE, TYPE_ERROR, TYPE_FATAL, TYPE_INFO, TYPE_TRACE, TYPE_WARNINGsource| Constructor and Description |
|---|
FunctionalTestNotification(org.mule.runtime.api.message.Message message,
String flowName,
Object replyMessage,
int action) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEventName() |
org.mule.runtime.api.message.Message |
getMessage() |
Object |
getReplyMessage() |
getAction, getActionId, getActionName, getActionName, getResourceIdentifier, getServerId, getTimestamp, getType, registerAction, setServerId, toStringgetSourcepublic static final int EVENT_RECEIVED
public FunctionalTestNotification(org.mule.runtime.api.message.Message message,
String flowName,
Object replyMessage,
int action)
throws TransformerException
TransformerExceptionCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.