Package org.apache.synapse.processors.builtin.axis2

Examples of org.apache.synapse.processors.builtin.axis2.AddressingInProcessor.process()


    public void testAddressingProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        Processor addressingProcessor = new AddressingInProcessor();
        SynapseEnvironment env = new Axis2SynapseEnvironment(null,null);
        boolean result = addressingProcessor.process(env,sm);
        assertTrue(((Boolean) sm.getProperty(
                Constants.MEDIATOR_RESPONSE_PROPERTY)).booleanValue());
        assertTrue(result);
    }
}
View Full Code Here


        SynapseEnvironment se = TestSynapseEnvironment.createAxis2SynapseEnvironment();
        SynapseMessage smNoAdd = TestSynapseMessage.createSampleSOAP11MessageWithoutAddressing("target/synapse-repository");
        AddressingInProcessor aip = new AddressingInProcessor();

        aip.process(se, smNoAdd);
        assertTrue("to should be null if there is no addressing header", smNoAdd.getTo() == null);

        SynapseMessage smAdd = TestSynapseMessage.createSampleSOAP11MessageWithAddressing("target/synapse-repository");
        aip.process(se,smAdd);
        assertTrue("to should be the incoming addressing header",
View Full Code Here

        aip.process(se, smNoAdd);
        assertTrue("to should be null if there is no addressing header", smNoAdd.getTo() == null);

        SynapseMessage smAdd = TestSynapseMessage.createSampleSOAP11MessageWithAddressing("target/synapse-repository");
        aip.process(se,smAdd);
        assertTrue("to should be the incoming addressing header",
                smAdd.getTo().getAddress().equals(TestSynapseMessage.URN_SAMPLE_TO_ADDRESS));

    }
}
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.