Examples of OutboundBehavior


Examples of org.mule.munit.common.endpoint.OutboundBehavior

     *                The {@link MuleMessage} to return
     *                </p>
     */
    public void thenReturn(MuleMessage message)
    {
        OutboundBehavior behavior = new OutboundBehavior(new CopyMessageTransformer((DefaultMuleMessage) message),
                                                         createMessageProcessorFromSpy(process));

        MockEndpointManager factory = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_MULE_ENDPOINT_FACTORY);
        factory.addBehavior(address, behavior);
    }
View Full Code Here

Examples of org.mule.munit.common.endpoint.OutboundBehavior

     *                The exception to thrown
     *                </p>
     */
    public void thenThrow(MuleException exception)
    {
        OutboundBehavior behavior = new OutboundBehavior(exception, createMessageProcessorFromSpy(process));

        MockEndpointManager factory = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_MULE_ENDPOINT_FACTORY);
        factory.addBehavior(address, behavior);
    }
View Full Code Here

Examples of org.mule.munit.common.endpoint.OutboundBehavior

     *                {@link MuleMessageTransformer} to be applied
     *                </p>
     */
    public void thenApply(MuleMessageTransformer transformer)
    {
        OutboundBehavior behavior = new OutboundBehavior(transformer, createMessageProcessorFromSpy(process));

        MockEndpointManager factory = muleContext.getRegistry().lookupObject(MuleProperties.OBJECT_MULE_ENDPOINT_FACTORY);
        factory.addBehavior(address, behavior);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.