Package org.mule.munit.mel.assertions

Examples of org.mule.munit.mel.assertions.ElementMatcher


        context.declareFunction("messageInboundProperty", new MessageMatchingAssertionMelFunction(new ElementMatcherFactory()
        {
            @Override
            public ElementMatcher build(String elementName, MuleMessage muleMessage)
            {
                return new ElementMatcher(muleMessage.getInboundProperty(elementName));
            }
        }));

        context.declareFunction("messageOutboundProperty", new MessageMatchingAssertionMelFunction(new ElementMatcherFactory()
        {
            @Override
            public ElementMatcher build(String elementName, MuleMessage muleMessage)
            {
                return new ElementMatcher(muleMessage.getOutboundProperty(elementName));
            }
        }));


        context.declareFunction("messageInvocationProperty", new MessageMatchingAssertionMelFunction(new ElementMatcherFactory()
        {
            @Override
            public ElementMatcher build(String elementName, MuleMessage muleMessage)
            {
                return new ElementMatcher(muleMessage.getInvocationProperty(elementName));
            }
        }));

        context.declareFunction("messageInboundAttachment", new MessageMatchingAssertionMelFunction(new ElementMatcherFactory()
        {
            @Override
            public ElementMatcher build(String elementName, MuleMessage muleMessage)
            {
                return new ElementMatcher(muleMessage.getInboundAttachment(elementName));
            }
        }));

        context.declareFunction("messageOutboundAttachment", new MessageMatchingAssertionMelFunction(new ElementMatcherFactory()
        {
            @Override
            public ElementMatcher build(String elementName, MuleMessage muleMessage)
            {
                return new ElementMatcher(muleMessage.getOutboundAttachment(elementName));
            }
        }));

        context.declareFunction("valueOf", new ElementMatchingAssertionMelFunction());
View Full Code Here

TOP

Related Classes of org.mule.munit.mel.assertions.ElementMatcher

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.