Examples of Axis2SynapseMessage


Examples of org.apache.synapse.axis2.Axis2SynapseMessage

                Thread.currentThread().getContextClassLoader());
    }

    public void testAddressingProcessor() throws Exception {

        SynapseMessage smc = new Axis2SynapseMessage(msgCtx);
        env.injectMessage(smc);
        assertTrue(((Boolean) smc.getProperty(
                Constants.MEDIATOR_RESPONSE_PROPERTY)).booleanValue());
    }
View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

*/

public class AddressingProcessorTest extends TestCase {

    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

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

        env = new Axis2SynapseEnvironment(config,
                Thread.currentThread().getContextClassLoader());
    }

    public void testRegexProcessor() throws Exception {
        SynapseMessage smc = new Axis2SynapseMessage(mc);
        env.injectMessage(smc);
        assertEquals("regex", env.lookupProcessor("regex").getName());

    }
View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

*
*/

public class RegexProcessorTest extends TestCase {
    public void testRegexProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        sm.setTo(new EndpointReference("http://xmethods.org"));
        RegexProcessor pro = new RegexProcessor();
        pro.setPattern("http://xmethods..\\*");
        boolean result = pro.process(null,sm);
        assertTrue(result);

View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

*
*/

public class ServiceMediatorProcessorTest extends TestCase {
    public void testServiceMediatorProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository-sendonAxis2"));
        ServiceMediatorProcessor pro = new ServiceMediatorProcessor();
        pro.setServiceName("test-mediator");
        boolean result = pro.process(null,sm);
        assertTrue(result);
View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

*
*/

public class XpathProcessorTest extends TestCase {
    public void testXpathProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        XPathProcessor pro = new XPathProcessor();
        pro.setXPathExpr("//ns:text");
        pro.addXPathNamespace("ns", "urn:text-body");
        boolean result = pro.process(null, sm);
View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

        env = new Axis2SynapseEnvironment(config,
                Thread.currentThread().getContextClassLoader());
    }

    public void testXpathProcessor() throws Exception {
        SynapseMessage smc = new Axis2SynapseMessage(mc);
        env.injectMessage(smc);
        assertEquals("xpath", env.lookupProcessor("xpath").getName());
    }
View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

                Thread.currentThread().getContextClassLoader());
    }

    public void testClassMediatorProcessor() throws Exception {

        SynapseMessage smc = new Axis2SynapseMessage(msgCtx);
        env.injectMessage(smc);
        assertNotNull(env.lookupProcessor("mediation"));
    }
View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

*
*/

public class StageProcessorTest extends TestCase {
    public void testStageProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        StageProcessor pro = new StageProcessor();
        boolean result = pro.process(null, sm);
        assertTrue(result);

View Full Code Here

Examples of org.apache.synapse.axis2.Axis2SynapseMessage

*
*/

public class BulitinProcessorTest extends TestCase {
    public void testLogProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        Processor log = new LogProcessor();
        boolean result = log.process(null,sm);
        assertTrue(result);
    }
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.