Package org.talend.esb.sam.common.event

Examples of org.talend.esb.sam.common.event.MessageInfo


    public void testExpression() {
        Event event = new Event();
        event.setContent("test");
        event.setEventType(EventTypeEnum.FAULT_IN);
        event.getCustomInfo().put("key1", "value1");
        MessageInfo messageInfo = new MessageInfo();
        messageInfo.setFlowId("urn:flowid");
        messageInfo.setMessageId("urn:messageId");
        messageInfo.setOperationName("{namespace}opname");
        messageInfo.setPortType("{namespace}portname");
        messageInfo.setTransportType("http");
        event.setMessageInfo(messageInfo);
       
        JxPathFilter jxPathFilter = new JxPathFilter();
        jxPathFilter.setExpression("content='test'");
        Assert.assertTrue("Event should be filtered ", jxPathFilter.filter(event));
View Full Code Here

TOP

Related Classes of org.talend.esb.sam.common.event.MessageInfo

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.