Package org.mule.munit.common.mp

Examples of org.mule.munit.common.mp.SpyAssertion


        return after(Arrays.asList(withSpy));
    }

    protected SpyAssertion createSpyAssertion(MessageProcessorCall call, List<SpyProcess> spyProcesses)
    {
        return new SpyAssertion(call, createMessageProcessors(spyProcesses));
    }
View Full Code Here


    public void testRunSpyProcess() throws MuleException
    {
        ArrayList<SpyProcess> calls = new ArrayList<SpyProcess>();
        Spy spy = new Spy();
        calls.add(spy);
        SpyAssertion spyAssertion = new MunitSpy(muleContext).spyMessageProcessor("test")
                .ofNamespace("testNamespace")
                .createSpyAssertion(new MessageProcessorCall(new MessageProcessorId("test", "testNamespace")), calls);

        for (MessageProcessor mp : spyAssertion.getMessageProcessors())
        {
            mp.process(null);
        }

        assertEquals(1, spy.timesCalled);
View Full Code Here

TOP

Related Classes of org.mule.munit.common.mp.SpyAssertion

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.