Package org.mule.modules.interceptor.processors

Examples of org.mule.modules.interceptor.processors.MessageProcessorCall


    @Test
    public void getTheBestMatchingBehavior()
    {
        MockedMessageProcessorManager manager = new MockedMessageProcessorManager();
        MessageProcessorCall bestMatchingCall = createCall();
        Map<String, Object> attributes = bestMatchingCall.getAttributes();
        attributes.put("attr2", "attrValue2");

        manager.addBehavior(new MessageProcessorBehavior(createCall(), new CopyMessageTransformer((DefaultMuleMessage) muleMessage)));
        manager.addBehavior(new MessageProcessorBehavior(bestMatchingCall, new CopyMessageTransformer((DefaultMuleMessage) muleMessage)));
View Full Code Here


     * @return The List of message processor calls
     */
    public List<MessageProcessorCall> findCallsFor(MessageProcessorId mpId, Map<String, Object> attributesMatchers)
    {
        List<MessageProcessorCall> expected = new ArrayList<MessageProcessorCall>();
        MessageProcessorCall matchingCall = new MessageProcessorCall(mpId);
        matchingCall.setAttributes(attributesMatchers);
        for (MessageProcessorCall call : calls)
        {
            if (matchingCall.matchingWeight(call) >= 0)
            {
                expected.add(call);
            }
        }
        return expected;
View Full Code Here

TOP

Related Classes of org.mule.modules.interceptor.processors.MessageProcessorCall

Copyright © 2018 www.massapicom. 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.