Package org.apache.synapse.axis2

Examples of org.apache.synapse.axis2.SynapseDispatcher


        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


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

    public void testClassMediatorProcessor() throws Exception {

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

*
*/

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

*
*/

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

*
*/

public class ClassMediatorProcessorTest extends TestCase {
    public void testClassMediatorProcessor() throws Exception {
        SynapseMessage sm = new Axis2SynapseMessage(
                Axis2EnvSetup.axis2Deployment("target/synapse-repository"));
        ClassMediatorProcessor pro = new ClassMediatorProcessor();
        pro.setClazz(Class.forName("org.apache.synapse.mediators.LoggerTestSample"));
        boolean result = pro.process(null,sm);
        assertTrue(result);
View Full Code Here

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

    public void testServiceMediatorWithAddressingEngage() throws Exception {

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

    public void testMultipleAddressingModuleEngagement() throws Exception {
        /**
         * Test case return an excetion if Something goes wrong in AddressingINProcessor
         */
        SynapseMessage smc = new Axis2SynapseMessage(msgCtx);
        env.injectMessage(smc);
        assertNotNull(env.lookupProcessor("mediation"));
    }
View Full Code Here

        targetServer.start();
    }

    public void testFaultScenario() {
        try {
            env.injectMessage(new Axis2SynapseMessage(msgCtx));
            fail("Native End Point Throws an Exception");
        } catch (Exception e) {
        }

    }
View Full Code Here

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

    public void testFalseReturnFromMediator() throws Exception {

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

            msgCtx.setEnvelope(env);
        } catch (AxisFault e) {
            throw new SynapseException(e);
        }

        return new Axis2SynapseMessage(msgCtx);
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.axis2.SynapseDispatcher

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.