Examples of process()


Examples of org.mule.api.processor.RequestReplyRequesterMessageProcessor.process()

                {
                    MuleEvent event;
                    try
                    {
                        event = getTestEvent(TEST_MESSAGE, service, inboundEndpoint);
                        MuleEvent resultEvent = asyncReplyMP.process(event);

                        // Can't assert same because we copy event for async currently
                        assertEquals(event.getMessageAsString(), resultEvent.getMessageAsString());
                        assertEquals(event.getMessage().getUniqueId(), resultEvent.getMessage().getUniqueId());
                    }
View Full Code Here

Examples of org.mule.api.routing.MatchableMessageProcessor.process()

            }

            if (outboundRouter.isMatch(eventToRoute.getMessage()))
            {
                matchfound = true;
                result = outboundRouter.process(event);
                if (!isMatchAll())
                {
                    return result;
                }
            }
View Full Code Here

Examples of org.mule.api.routing.OutboundRouter.process()

                {
                    matchfound = true;
                    // Manage outbound only transactions here
                    final OutboundRouter router = outboundRouter;
   
                    result = router.process(event);
   
                    if (!isMatchAll())
                    {
                        return result;
                    }
View Full Code Here

Examples of org.mule.api.transformer.Transformer.process()

    @Test
    public void testDefaultFlowSync() throws Exception
    {
        Transformer reqTransformer = Mockito.mock(Transformer.class);
        Mockito.when(reqTransformer.process(Mockito.any(MuleEvent.class))).then(echoEventAnswer);
        Transformer resTransformer = Mockito.mock(Transformer.class);
        Mockito.when(resTransformer.process(Mockito.any(MuleEvent.class))).then(echoEventAnswer);
       
        OutboundEndpoint endpoint = createOutboundEndpoint(null, null, reqTransformer, resTransformer,
            MessageExchangePattern.REQUEST_RESPONSE, null);
View Full Code Here

Examples of org.mule.api.transport.MessageDispatcher.process()

        {
            MessageDispatcher dispatcher = null;
            try
            {
                dispatcher = getDispatcher(endpoint);
                MuleEvent result = dispatcher.process(event);
                // We need to invoke notification message processor with request
                // message only after successful send/dispatch
                if (notificationMessageProcessor == null)
                {
                    notificationMessageProcessor = new OutboundNotificationMessageProcessor(endpoint);
View Full Code Here

Examples of org.mule.construct.Flow.process()

        Flow flow2 = muleContext.getRegistry().lookupObject("pojoFlow2");

        assertEquals("start nullmethod2Arg1Arg2config2Val arg2Valmethod2Arg1Arg2config2Val ", flow.process(
            getTestEvent("start ")).getMessageAsString());

        assertEquals("start nullmethod2Arg1Arg2null arg2Valmethod2Arg1Arg2null ", flow2.process(
            getTestEvent("start ")).getMessageAsString());

    }

    @Override
View Full Code Here

Examples of org.mule.construct.SimpleFlowConstruct.process()

    public void testUpdateFlow() throws Exception
    {
        final MuleEvent event = getTestEvent("");
        final SimpleFlowConstruct flow = lookupFlowConstruct("MainFlow");
        final MuleEvent responseEvent = flow.process(event);
        System.out.println(responseEvent);
    }

    private SimpleFlowConstruct lookupFlowConstruct(final String name)
    {
View Full Code Here

Examples of org.mule.endpoint.DynamicOutboundEndpoint.process()

        when(endpointBuilder.clone()).thenReturn(staticEndpointBuilder);

        DynamicOutboundEndpoint dynamicOutboundEndpoint = new DynamicOutboundEndpoint(endpointBuilder, new DynamicURIBuilder(new URIBuilder("test://localhost:#[header:port]", muleContext)));

        testOutboundEvent = createTestOutboundEvent();
        dynamicOutboundEndpoint.process(testOutboundEvent);
        dynamicOutboundEndpoint.process(testOutboundEvent);

        verify(endpointBuilder, times(1)).buildOutboundEndpoint();
    }
View Full Code Here

Examples of org.mule.enricher.MessageEnricher.process()

                event.getMessage().setPayload("test");
                return event;
            }
        });
       
        MuleMessage result = enricher.process(getTestEvent("")).getMessage();
        assertEquals("test", result.getOutboundProperty("myHeader"));
        assertEquals("", result.getPayload());
    }

    public void testEnrichHeaderWithHeader() throws Exception
View Full Code Here

Examples of org.mule.execution.PhaseExecutionEngine.process()

    {
        addSupportedPhase(mockFailingPhase);
        addSupportedPhase(mockProcessPhase1);
        when(mockEndPhase.supportsTemplate(mockTemplate)).thenReturn(true);
        PhaseExecutionEngine phaseExecutionEngine = new PhaseExecutionEngine(phaseList, mockExceptionHandler, mockEndPhase);
        phaseExecutionEngine.process(mockTemplate,mockContext);
        verify(mockEndPhase,times(1)).runPhase(any(EndPhaseTemplate.class),any(MessageProcessContext.class), any(PhaseResultNotifier.class));
    }

    @Test
    public void phaseItsNoSupportedThenNextPhaseExecutes() throws Exception
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.