Examples of Process()


Examples of org.mule.processor.AsyncInterceptingMessageProcessor.process()

        MuleMessage message = new DefaultMuleMessage("data", muleContext);
        MuleEvent event = new DefaultMuleEvent(message, MessageExchangePattern.ONE_WAY, getTestService());

        message.setInvocationProperty("key", "value");

        async.process(event);
        asyncListener.latch.await(RECEIVE_TIMEOUT, TimeUnit.MILLISECONDS);

        MuleEvent asyncEvent = asyncListener.event;

        // Event is copied, but session isn't
View Full Code Here

Examples of org.mule.routing.outbound.DefaultOutboundRouterCollection.process()

        };
        messageRouter.setCatchAllStrategy(strategy);

        MuleSession session = getTestSession(getTestService(), muleContext);

        messageRouter.process(getTestEvent("hello"));
        assertEquals(1, catchAllCount[0]);
        assertEquals(0, count1[0]);
        assertEquals(0, count2[0]);

        messageRouter.process(getTestEvent(new StringBuffer()));
View Full Code Here

Examples of org.mule.routing.outbound.MulticastingRouter.process()

                };
                router.setRoutes(getMessageProcessors());
                router.setMuleContext(muleContext);
               
                // Route the ExceptionMessage to the new router
                router.process(new DefaultMuleEvent(exceptionMessage, event));
            }
            catch (Exception e)
            {
                logFatal(event, e);
            }
View Full Code Here

Examples of org.mule.tck.functional.AssertionMessageProcessor.process()

    public void processDummyEvent() throws Exception
    {
        AssertionMessageProcessor asp = new AssertionMessageProcessor();
        asp.setFlowConstruct(flowConstruct);
        asp.start();
        asp.process(mock(MuleEvent.class));
    }

    @Test
    public void processValidEvent() throws Exception
    {
View Full Code Here

Examples of org.mule.transformer.simple.StringAppendTransformer.process()

      
        MuleEvent fireEvent(MuleEvent event) throws MuleException
        {
            Transformer before = new StringAppendTransformer(appendBefore);
            Transformer after = new StringAppendTransformer(appendAfter);
            return after.process(listener.process(before.process(event)));
        }

        public void setAppendBefore(String appendBefore)
        {
            this.appendBefore = appendBefore;
View Full Code Here

Examples of org.mule.transport.soap.axis.AxisMessageDispatcher.process()

        {
            MuleMessage msg = new DefaultMuleMessage("testPayload", muleContext);
            msg.addOutboundAttachment("testAttachment", new DataHandler(new StringDataSource("foo")));
            DefaultMuleSession session = new DefaultMuleSession(msg, ((AbstractConnector) ep.getConnector()).getSessionHandler(), muleContext);
            DefaultMuleEvent event = new DefaultMuleEvent(msg, getTestInboundEndpoint("test://test"), session);
            MuleMessage result = client.process(event).getMessage();
            assertNotNull(result);
            assertNotNull(result.getPayload());
            assertEquals(result.getPayloadAsString(), "Done");
            callbackCount++;
        }
View Full Code Here

Examples of org.mule.transport.vm.VMMessageDispatcher.process()

        message.setProperty("key", "value", PropertyScope.SESSION);
        message.setProperty("key2", "value2", PropertyScope.SESSION);

        MessageDispatcher dispatcher = new VMMessageDispatcher(muleContext.getEndpointFactory()
            .getOutboundEndpoint("addSessionPropertiesFlowEndpoint"));
        MuleEvent result = dispatcher.process(event);

        assertNotNull(result);
        assertNotSame(event, result);
        assertEquals("val", result.getSession().getProperty("keyNonSerializable"));
        assertEquals(nonSerializable, result.getSession().getProperty("keyNonSerializable2"));
View Full Code Here

Examples of org.need4steed.cccount.Counter.Process()

  @Test
  public void test() {
    String s ="ab弓都𪛖\u9fa5弓t\u9fa5M";
    Counter ct = new Counter();
    ct.Process(s);
    assertEquals(10  , ct.GetNChars());
    assertEquals(6, ct.GetNCjks());
    assertEquals(4, ct.GetNDistinguishable());
    String[] res= {"弓\t2","\u9fa5\t2","都\t1","𪛖\t1"};
    int i = 0;
View Full Code Here

Examples of org.netbeans.modules.php.nette.editor.completion.processors.HelperCompletionProcessor.process()

        completionResultSet.addAllItems(pcp2.process(sequence, sequence2, document, caretOffset));
      }
      //helper completion
      if(token2.id() == LatteTokenId.PIPE || token2.id() == LatteTokenId.TEXT) {
        HelperCompletionProcessor pcp2 = new HelperCompletionProcessor();
        completionResultSet.addAllItems(pcp2.process(sequence, sequence2, document, caretOffset));
      }
    }
  }

}
View Full Code Here

Examples of org.netbeans.modules.php.nette.editor.completion.processors.MacroCompletionProcessor.process()

        }
      }
      // for macro name completion ( {macro| ..} )
      if (token2.id() == LatteTokenId.MACRO || token2.id() == LatteTokenId.LD) {
        MacroCompletionProcessor pcp2 = new MacroCompletionProcessor();
        completionResultSet.addAllItems(pcp2.process(sequence, sequence2, document, caretOffset));
      }
      //helper completion
      if(token2.id() == LatteTokenId.PIPE || token2.id() == LatteTokenId.TEXT) {
        HelperCompletionProcessor pcp2 = new HelperCompletionProcessor();
        completionResultSet.addAllItems(pcp2.process(sequence, sequence2, document, caretOffset));
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.